summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-03-28 03:02:14 +0100
committerMarek Olšák <[email protected]>2013-04-06 23:57:10 +0200
commit3264c3e99700389f0a3958db7c9c19673107d67a (patch)
tree2c26670d6e2940646f62742d739452ff2e3aa688 /src/mesa/main/light.c
parent9d4f67600b0a8f4b37eb2ed45b194e153669d11a (diff)
mesa: allow drivers not to expose ARB_color_buffer_float in GL core profile
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 3c43ec766f5..c694bebe69b 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1202,7 +1202,8 @@ _mesa_init_lighting( struct gl_context *ctx )
NULL );
ctx->Light.ColorMaterialEnabled = GL_FALSE;
- ctx->Light.ClampVertexColor = GL_TRUE;
+ ctx->Light.ClampVertexColor = ctx->API == API_OPENGL_COMPAT;
+ ctx->Light._ClampVertexColor = ctx->API == API_OPENGL_COMPAT;
/* Miscellaneous */
ctx->Light._NeedEyeCoords = GL_FALSE;