summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <[email protected]>2006-12-06 06:54:13 +0200
committerGeorge Sapountzis <[email protected]>2007-01-26 18:31:44 +0200
commit507167d7e2cf3bc64d1c112d927efeb1baa3b495 (patch)
tree6785ee585a7b67c0292d1fe173b001dbe8db35ea /src/mesa/main/context.c
parentc9b33ecd7c07cace0a6553ccfdaf7b021959c934 (diff)
Override Const.CheckArrayBounds for Xserver in XMesaCreateContext().
This leaves one last XFree86Server ifdef in Mesa core. --- Bug 9285: misc glcore, xmesa cleanups ACKed by Ian Romanick.
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index b2bd1d8a8e9..99f4dc9dfd4 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1078,14 +1078,8 @@ _mesa_init_constants( GLcontext *ctx )
ctx->Const.MaxProgramMatrices = MAX_PROGRAM_MATRICES;
ctx->Const.MaxProgramMatrixStackDepth = MAX_PROGRAM_MATRIX_STACK_DEPTH;
- /* If we're running in the X server, do bounds checking to prevent
- * segfaults and server crashes!
- */
-#if defined(XFree86Server)
- ctx->Const.CheckArrayBounds = GL_TRUE;
-#else
+ /* CheckArrayBounds is overriden by drivers/x11 for X server */
ctx->Const.CheckArrayBounds = GL_FALSE;
-#endif
/* GL_ARB_draw_buffers */
ctx->Const.MaxDrawBuffers = MAX_DRAW_BUFFERS;