summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-01-01 08:07:54 -0700
committerBrian Paul <brianp@vmware.com>2009-01-06 09:18:55 -0700
commit7bfe6a9375b413d92982e065fb48c810d144c632 (patch)
treee7bb07d458b3230284a5cae35a4c365bd665c679 /src/mesa
parent158d3febd859f46fe2b96db55c7145e19b82f52e (diff)
mesa: updated comments about GLSL constants
(cherry picked from commit dfada459aabf1a02dc2dbdb6644283fc95df2586)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/slang/library/slang_common_builtin.gc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/library/slang_common_builtin.gc b/src/mesa/shader/slang/library/slang_common_builtin.gc
index 3e03b101b8..230c57cea8 100644
--- 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;