{"record":{"id":"d9d1e4cae19b96c6","repo":"libgdx/libgdx","slug":"compressed-textures-not-supported-by-gwt-webgl-bac","errorCode":null,"errorMessage":"compressed textures not supported by GWT WebGL backend","messagePattern":"compressed textures 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":322,"sourceCode":"\tpublic void glClearStencil (int s) {\n\t\tgl.clearStencil(s);\n\t}\n\n\t@Override\n\tpublic void glColorMask (boolean red, boolean green, boolean blue, boolean alpha) {\n\t\tgl.colorMask(red, green, blue, alpha);\n\t}\n\n\t@Override\n\tpublic void glCompileShader (int shader) {\n\t\tWebGLShader glShader = shaders.get(shader);\n\t\tgl.compileShader(glShader);\n\t}\n\n\t@Override\n\tpublic void glCompressedTexImage2D (int target, int level, int internalformat, int width, int height, int border,\n\t\tint imageSize, Buffer data) {\n\t\tthrow new GdxRuntimeException(\"compressed textures not supported by GWT WebGL backend\");\n\t}\n\n\t@Override\n\tpublic void glCompressedTexSubImage2D (int target, int level, int xoffset, int yoffset, int width, int height, int format,\n\t\tint imageSize, Buffer data) {\n\t\tthrow new GdxRuntimeException(\"compressed textures not supported by GWT WebGL backend\");\n\t}\n\n\t@Override\n\tpublic void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) {\n\t\tgl.copyTexImage2D(target, level, internalformat, x, y, width, height, border);\n\t}\n\n\t@Override\n\tpublic void glCopyTexSubImage2D (int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) {\n\t\tgl.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);\n\t}\n","sourceCodeStart":304,"sourceCodeEnd":340,"githubUrl":"https://github.com/libgdx/libgdx/blob/97f40861878058087be0685ca167ddfde132134b/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGL20.java#L304-L340","documentation":"Error \"compressed textures 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:322 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call glCompressedTexImage2D/glCompressedTexSubImage2D on GWT WebGL; use plain glTexImage2D with uncompressed RGBA data, or provide precompressed textures via a WebGL compressed-texture extension path of your own."],"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"}