projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
694b10c
)
don't pass GL_INTENSITY for <format> to glTexImage2D - it's illegal
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 11 Jun 2004 15:07:23 +0000
(15:07 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 11 Jun 2004 15:07:23 +0000
(15:07 +0000)
progs/demos/texenv.c
patch
|
blob
|
history
diff --git
a/progs/demos/texenv.c
b/progs/demos/texenv.c
index d64ae2ee264ad1cf1bb6e06460dbb014b888123f..590867b4945a88514a58c2c680322b0b83a00224 100644
(file)
--- 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;