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 44ee04656907e480b1cb3743e1d8ed4f6d8c2210..7ff45cffe8b9458a987f1e7c6e8190a8894ffb00 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;