{"record":{"id":"3c6d6ed605a294d6","repo":"libgdx/libgdx","slug":"glgetinteger-not-supported-by-gwt-webgl-backend","errorCode":null,"errorMessage":"glGetInteger not supported by GWT WebGL backend","messagePattern":"glGetInteger not supported by GWT WebGL backend","errorType":"exception","errorClass":"GdxRuntimeException","httpStatus":null,"severity":"error","filePath":"backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGL20.java","lineNumber":701,"sourceCode":"\t\t\tparams.put(0, gl.getParameteri(pname));\n\t\t\tparams.flip();\n\t\t} else if (pname == GL20.GL_VIEWPORT) {\n\t\t\tInt32Array array = gl.getParameterv(pname);\n\t\t\tparams.put(0, array.get(0));\n\t\t\tparams.put(1, array.get(1));\n\t\t\tparams.put(2, array.get(2));\n\t\t\tparams.put(3, array.get(3));\n\t\t\tparams.flip();\n\t\t} else if (pname == GL20.GL_FRAMEBUFFER_BINDING) {\n\t\t\tWebGLFramebuffer fbo = gl.getParametero(pname);\n\t\t\tif (fbo == null) {\n\t\t\t\tparams.put(0);\n\t\t\t} else {\n\t\t\t\tparams.put(frameBuffers.getKey(fbo));\n\t\t\t}\n\t\t\tparams.flip();\n\t\t} else\n\t\t\tthrow new GdxRuntimeException(\"glGetInteger not supported by GWT WebGL backend\");\n\t}\n\n\t@Override\n\tpublic String glGetProgramInfoLog (int program) {\n\t\treturn gl.getProgramInfoLog(programs.get(program));\n\t}\n\n\t@Override\n\tpublic void glGetProgramiv (int program, int pname, IntBuffer params) {\n\t\tif (pname == GL20.GL_DELETE_STATUS || pname == GL20.GL_LINK_STATUS || pname == GL20.GL_VALIDATE_STATUS) {\n\t\t\tboolean result = gl.getProgramParameterb(programs.get(program), pname);\n\t\t\tparams.put(result ? GL20.GL_TRUE : GL20.GL_FALSE);\n\t\t} else {\n\t\t\tparams.put(gl.getProgramParameteri(programs.get(program), pname));\n\t\t}\n\t\tparams.flip();\n\t}\n","sourceCodeStart":683,"sourceCodeEnd":719,"githubUrl":"https://github.com/libgdx/libgdx/blob/97f40861878058087be0685ca167ddfde132134b/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGL20.java#L683-L719","documentation":"Error \"glGetInteger not supported by GWT WebGL backend\" thrown in libgdx/libgdx.","triggerScenarios":"Thrown at backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGL20.java:701 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["glGetInteger is not supported on GWT WebGL; use the specific WebGL getParameter path exposed by the backend, or track the state yourself."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"97f40861878058087be0685ca167ddfde132134b","analyzedAt":"2026-08-14T10:52:53.492Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}