diff options
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/GLBuffers.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLBuffers.java b/src/jogl/classes/com/jogamp/opengl/util/GLBuffers.java index 67dc08450..44be29957 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/GLBuffers.java +++ b/src/jogl/classes/com/jogamp/opengl/util/GLBuffers.java @@ -588,7 +588,10 @@ public class GLBuffers extends Buffers { case GL2.GL_BITMAP: if (GL2.GL_COLOR_INDEX == format || GL2ES2.GL_STENCIL_INDEX == format) { compSize = 1; + } else { + throw new GLException("BITMAP type only supported for format COLOR_INDEX and STENCIL_INDEX, not 0x"+Integer.toHexString(format)); } + break; case GL.GL_BYTE: case GL.GL_UNSIGNED_BYTE: compSize = 1; |