From 22dad683b18e822579fab03b2ae96b62f1a4e740 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 11 Jun 2004 15:07:23 +0000 Subject: don't pass GL_INTENSITY for to glTexImage2D - it's illegal --- progs/demos/texenv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'progs/demos/texenv.c') diff --git a/progs/demos/texenv.c b/progs/demos/texenv.c index d64ae2ee26..590867b494 100644 --- a/progs/demos/texenv.c +++ b/progs/demos/texenv.c @@ -354,7 +354,8 @@ static void loadTexture( int width, int height, break; case GL_INTENSITY: luminanceSize = 1; - textureFormat = GL_INTENSITY; + /* Note: format=GL_INTENSITY for glTexImage is not legal */ + textureFormat = GL_LUMINANCE; break; case GL_ALPHA: alphaSize = 1; -- cgit v1.2.3