Skip to content

Commit

Permalink
Fix #6 glGetTexParameter should take texture target instead of ID
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshachilakapati committed Aug 21, 2017
1 parent 6d8bbdf commit 4cf3d68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webgl4j/src/main/java/com/shc/webgl4j/client/WebGL10.java
Original file line number Diff line number Diff line change
Expand Up @@ -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> T glGetUniform(int program, int location)
Expand Down Expand Up @@ -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> T nglGetUniform(JavaScriptObject programID, JavaScriptObject location) /*-{
Expand Down

0 comments on commit 4cf3d68

Please sign in to comment.