don't pass GL_INTENSITY for <format> to glTexImage2D - it's illegal
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 11 Jun 2004 15:07:23 +0000 (15:07 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 11 Jun 2004 15:07:23 +0000 (15:07 +0000)
progs/demos/texenv.c

index d64ae2ee264ad1cf1bb6e06460dbb014b888123f..590867b4945a88514a58c2c680322b0b83a00224 100644 (file)
@@ -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;