summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiklos Fazekas <[email protected]>1999-10-05 18:48:49 +0000
committerMiklos Fazekas <[email protected]>1999-10-05 18:48:49 +0000
commit2ed47d29c63892499279fa1076e076b790ac2caa (patch)
tree5aab1f6099d6b9c51f32f4841e79859ab74e9bc9 /src
parentd598ca05e16f9f4a2dece36f79cae0941692d4c0 (diff)
Added support for GL_ext_texture_add
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/glide/fxdd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c
index 0c0b827795f..8ba124508e6 100644
--- a/src/mesa/drivers/glide/fxdd.c
+++ b/src/mesa/drivers/glide/fxdd.c
@@ -337,6 +337,7 @@ static GLint fxDDGetParameteri(const GLcontext *ctx, GLint param)
fprintf(stderr,"fx Driver: internal error in fxDDGetParameteri(): %x\n",param);
fxCloseHardware();
exit(-1);
+ return 0;
}
}
@@ -409,6 +410,9 @@ void fxDDInitExtensions( GLcontext *ctx )
gl_extensions_add( ctx, DEFAULT_ON, "3DFX_set_global_palette", 0 );
gl_extensions_add( ctx, DEFAULT_ON, "GL_FXMESA_global_texture_lod_bias", 0);
+ if(fxMesa->haveTwoTMUs)
+ gl_extensions_add( ctx, DEFAULT_ON, "GL_EXT_texture_env_add", 0);
+
if (!fxMesa->emulateTwoTMUs)
gl_extensions_disable( ctx, "GL_ARB_multitexture" );
}