@Override
    public void glTexImage2D(final int target, final int level, final int internalFormat, final int width,
                             final int height, final int border, final int format, final int type,
                             final ByteBuffer data) {
        checkLimit(data);
        GL11.glTexImage2D(target, level, internalFormat, width, height, border, format, type, data);
    }
The LWJGL implementation of interfaces {@link GL}, {@link GL2}, {@link GL3}, {@link GL4}.
jme3-lwjgl3/src/main/java/com/jme3/renderer/lwjgl/LwjglGL.java