Hi
When running the below line of code I get the following error
GL13.glCompressedTexImage2D(GL11.GL_TEXTURE_2D, 0, EXTTextureCompressionS3TC.GL_COMPRESSED_RGB_S3TC_DXT1_EXT, width, height, 0, data);
org.lwjgl.opengl.OpenGLException: Invalid value (1281)
at org.lwjgl.opengl.Util.checkGLError(Util.java:59)
at org.lwjgl.opengl.GL13.glCompressedTexImage2D(GL13.java:163)
Does anyone know what the lwjgl error means? Which value does it think is invalid?
I wanted to add a size parameter but there wasn't one available with byte buffer as a parameter so I used the method shown