projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9dceb1
)
Generate a texenv fragment program if there's a GLSL vertex shader but no GLSL fragme...
author
Brian
<brian.paul@tungstengraphics.com>
Tue, 2 Oct 2007 22:55:21 +0000
(16:55 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Tue, 2 Oct 2007 22:55:21 +0000
(16:55 -0600)
This allows Glean glsl1 test to get pretty far.
src/mesa/main/texenvprogram.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texenvprogram.c
b/src/mesa/main/texenvprogram.c
index cdf35b4636977f49172bb21d0decaf6f7be6451b..a554c033c4075dcf2528c769e3e33f275479885e 100644
(file)
--- a/
src/mesa/main/texenvprogram.c
+++ b/
src/mesa/main/texenvprogram.c
@@
-1247,7
+1247,8
@@
_mesa_UpdateTexEnvProgram( GLcontext *ctx )
/* If a conventional fragment program/shader isn't in effect... */
if (!ctx->FragmentProgram._Enabled &&
- !ctx->Shader.CurrentProgram) {
+ (!ctx->Shader.CurrentProgram ||
+ !ctx->Shader.CurrentProgram->FragmentProgram) ) {
make_state_key(ctx, &key);
hash = hash_key(&key);