summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa/src/drv/mga
diff options
context:
space:
mode:
authorkeithw <keithw>2001-01-11 00:00:58 +0000
committerkeithw <keithw>2001-01-11 00:00:58 +0000
commitece2d4a699746ebc19099fae3368d9b11fe6d9b4 (patch)
tree2192bdd89ea0c939c76d234da5446d407308be87 /xc/lib/GL/mesa/src/drv/mga
parent643fd3c7cfee76bd4898ade59822a5ae06d7fecf (diff)
use better defines for disabled code
Diffstat (limited to 'xc/lib/GL/mesa/src/drv/mga')
-rw-r--r--xc/lib/GL/mesa/src/drv/mga/mgadd.c3
-rw-r--r--xc/lib/GL/mesa/src/drv/mga/mgapixel.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/xc/lib/GL/mesa/src/drv/mga/mgadd.c b/xc/lib/GL/mesa/src/drv/mga/mgadd.c
index d777aa77a..82a4f8ebe 100644
--- a/xc/lib/GL/mesa/src/drv/mga/mgadd.c
+++ b/xc/lib/GL/mesa/src/drv/mga/mgadd.c
@@ -114,7 +114,10 @@ void mgaDDExtensionsInit( GLcontext *ctx )
if (MGA_IS_G400(MGA_CONTEXT(ctx)))
{
gl_extensions_enable( ctx, "GL_EXT_texture_env_add" );
+
+#if defined (MESA_packed_depth_stencil)
gl_extensions_enable( ctx, "GL_MESA_packed_depth_stencil" );
+#endif
#if defined (MESA_experimetal_agp_allocator)
if (!getenv("MGA_DISABLE_AGP_ALLOCATOR"))
diff --git a/xc/lib/GL/mesa/src/drv/mga/mgapixel.c b/xc/lib/GL/mesa/src/drv/mga/mgapixel.c
index 2634e0430..742ce7a40 100644
--- a/xc/lib/GL/mesa/src/drv/mga/mgapixel.c
+++ b/xc/lib/GL/mesa/src/drv/mga/mgapixel.c
@@ -623,7 +623,7 @@ static GLint mgaDDGetAgpOffset( GLcontext *ctx, const void *ptr )
void mgaDDInitPixelFuncs( GLcontext *ctx )
{
-#if defined (MESA_hacked_agp_allocator)
+#if defined (MESA_experimetal_agp_allocator)
ctx->Driver.AllocateAgpMemory = mgaDDAllocateAgpMemory;
ctx->Driver.GetAgpOffset = mgaDDGetAgpOffset;
ctx->Driver.FreeAgpMemory = mgaDDFreeAgpMemory;