diff --git a/webgl4j/src/main/java/com/shc/webgl4j/client/WebGL10.java b/webgl4j/src/main/java/com/shc/webgl4j/client/WebGL10.java index bbf4c6a..1811980 100644 --- a/webgl4j/src/main/java/com/shc/webgl4j/client/WebGL10.java +++ b/webgl4j/src/main/java/com/shc/webgl4j/client/WebGL10.java @@ -1956,10 +1956,10 @@ public static String[] glGetSupportedExtensions() return nglGetSupportedExtensions(); } - public static int glGetTexParameter(int textureID, int pname) + public static int glGetTexParameter(int textureTarget, int pname) { checkContextCompatibility(); - return nglGetTexParameter(WebGLObjectMap.get().toTexture(textureID), pname); + return nglGetTexParameter(textureTarget, pname); } public static T glGetUniform(int program, int location) @@ -2940,8 +2940,8 @@ private static native String[] nglGetSupportedExtensions() /*-{ return $wnd.gl.getSupportedExtensions(); }-*/; - private static native int nglGetTexParameter(JavaScriptObject textureID, int pname) /*-{ - return $wnd.gl.getTexParameter(textureID, pname); + private static native int nglGetTexParameter(int textureTarget, int pname) /*-{ + return $wnd.gl.getTexParameter(textureTarget, pname); }-*/; private static native T nglGetUniform(JavaScriptObject programID, JavaScriptObject location) /*-{