OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc76d72
)
glsl: add missing ambient field to gl_LightModel
author
Luca Barbieri
<luca@luca-barbieri.com>
Wed, 18 Aug 2010 10:52:57 +0000
(12:52 +0200)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Fri, 20 Aug 2010 20:01:09 +0000
(13:01 -0700)
Again, this is a one-element struct that was incorrectly missing the
field.
src/mesa/program/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index
fe2d898
..
5832494
100644
(file)
--- a/
src/mesa/program/ir_to_mesa.cpp
+++ b/
src/mesa/program/ir_to_mesa.cpp
@@
-1076,7
+1076,7
@@
static const struct {
{"gl_LightSource", "quadraticAttenuation",
{STATE_LIGHT, 0, STATE_ATTENUATION}, SWIZZLE_ZZZZ, true},
- {"gl_LightModel",
NULL
,
+ {"gl_LightModel",
"ambient"
,
{STATE_LIGHTMODEL_AMBIENT, 0}, SWIZZLE_XYZW, false},
{"gl_FrontLightModelProduct", "sceneColor",