replace check for XFree86LOADER and IN_MODULE with XFree86Server (bug 9144)
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 27 Nov 2006 16:33:43 +0000 (16:33 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 27 Nov 2006 16:33:43 +0000 (16:33 +0000)
src/mesa/main/context.c

index 44ee046..7ff45cf 100644 (file)
@@ -1086,7 +1086,7 @@ _mesa_init_constants( GLcontext *ctx )
    /* If we're running in the X server, do bounds checking to prevent
     * segfaults and server crashes!
     */
-#if defined(XFree86LOADER) && defined(IN_MODULE)
+#if defined(XFree86Server)
    ctx->Const.CheckArrayBounds = GL_TRUE;
 #else
    ctx->Const.CheckArrayBounds = GL_FALSE;