|
|
|
@ -7,11 +7,13 @@ public class GLDebugDesktop extends GLDebugES implements GL2, GL3, GL4 { |
|
|
|
|
|
|
|
|
|
private final GL2 gl2; |
|
|
|
|
private final GL3 gl3; |
|
|
|
|
private final GL4 gl4; |
|
|
|
|
|
|
|
|
|
public GLDebugDesktop(GL gl, GLExt glext, GLFbo glfbo) { |
|
|
|
|
super(gl, glext, glfbo); |
|
|
|
|
this.gl2 = gl instanceof GL2 ? (GL2) gl : null; |
|
|
|
|
this.gl3 = gl instanceof GL3 ? (GL3) gl : null; |
|
|
|
|
this.gl4 = gl instanceof GL4 ? (GL4) gl : null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void glAlphaFunc(int func, float ref) { |
|
|
|
@ -87,4 +89,9 @@ public class GLDebugDesktop extends GLDebugES implements GL2, GL3, GL4 { |
|
|
|
|
checkError(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void glPatchParameter(int count) { |
|
|
|
|
gl4.glPatchParameter(count); |
|
|
|
|
checkError(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|