projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9b3488
)
mesa: updated comments about GLSL constants
author
Brian Paul
<brianp@vmware.com>
Thu, 1 Jan 2009 15:07:54 +0000
(08:07 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 1 Jan 2009 15:07:54 +0000
(08:07 -0700)
src/mesa/shader/slang/library/slang_common_builtin.gc
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/library/slang_common_builtin.gc
b/src/mesa/shader/slang/library/slang_common_builtin.gc
index 3e03b101b87384ef72b699ddeda91efd8907239b..230c57cea8d003014010b0a8acae3efb5dad4d0e 100644
(file)
--- a/
src/mesa/shader/slang/library/slang_common_builtin.gc
+++ b/
src/mesa/shader/slang/library/slang_common_builtin.gc
@@
-27,8
+27,9
@@
// From Shader Spec, ver. 1.10, rev. 59
//
-//bp: XXX these will probably go away since the value needs to be
-//determined at runtime and may vary from one GLcontext to another...
+// Note: the values assigned to these constants here aren't actually used.
+// They're set by the compiler according to the GL context limits.
+// See slang_simplify.c
const int gl_MaxLights = 8;
const int gl_MaxClipPlanes = 6;
const int gl_MaxTextureUnits = 8;