summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-06-03 07:14:27 +0000
committerDaniel Borca <[email protected]>2004-06-03 07:14:27 +0000
commit93c91c3863737808ceca6f17e3bc61114bca2eeb (patch)
treedc85d3f1f10d3ede910f30f062dc8d40223a182f /src/mesa/drivers/glide
parent8f980b0e748f7c5a49e75c00ef4fa0b077d78197 (diff)
masked out unsupported glBlendColor (some games check only the proc addr)
Diffstat (limited to 'src/mesa/drivers/glide')
-rw-r--r--src/mesa/drivers/glide/fx.rc4
-rw-r--r--src/mesa/drivers/glide/fxapi.c3
-rw-r--r--src/mesa/drivers/glide/fxdrv.h2
-rw-r--r--src/mesa/drivers/glide/fxg.c4
-rw-r--r--src/mesa/drivers/glide/fxopengl.def4
-rw-r--r--src/mesa/drivers/glide/fxwgl.c3
6 files changed, 11 insertions, 9 deletions
diff --git a/src/mesa/drivers/glide/fx.rc b/src/mesa/drivers/glide/fx.rc
index bace051686c..8c6dedff375 100644
--- a/src/mesa/drivers/glide/fx.rc
+++ b/src/mesa/drivers/glide/fx.rc
@@ -5,10 +5,10 @@
#define HWSTR "3dfx Voodoo Graphics, Voodoo^2, Voodoo Banshee, Velocity 100/200, Voodoo3, Voodoo4, Voodoo5"
#define COPYRIGHTSTR "Copyright \251 Brian E. Paul"
-#define VERSIONSTR "6.1.0.1"
+#define VERSIONSTR "6.1.0.5"
#define MANVERSION 6
#define MANREVISION 1
-#define BUILD_NUMBER 1
+#define BUILD_NUMBER 5
VS_VERSION_INFO VERSIONINFO
FILEVERSION MANVERSION, MANREVISION, 0, BUILD_NUMBER
diff --git a/src/mesa/drivers/glide/fxapi.c b/src/mesa/drivers/glide/fxapi.c
index e827ec31ddc..47aa0464eb6 100644
--- a/src/mesa/drivers/glide/fxapi.c
+++ b/src/mesa/drivers/glide/fxapi.c
@@ -644,8 +644,9 @@ fxMesaCreateContext(GLuint win,
fxMesa->snapVertices ? "" : "no ");
}
- sprintf(fxMesa->rendererString, "Mesa %s v0.61 %s%s",
+ sprintf(fxMesa->rendererString, "Mesa %s v0.61 %s%s%s",
grGetString(GR_RENDERER),
+ getenv("MESA_3DFX_STRING") ? "3dfx " : "",
grGetString(GR_HARDWARE),
((fxMesa->type < GR_SSTTYPE_Voodoo4) && (voodoo->numChips > 1)) ? " SLI" : "");
diff --git a/src/mesa/drivers/glide/fxdrv.h b/src/mesa/drivers/glide/fxdrv.h
index 37612a55ac0..214a57edb7b 100644
--- a/src/mesa/drivers/glide/fxdrv.h
+++ b/src/mesa/drivers/glide/fxdrv.h
@@ -738,6 +738,6 @@ extern int TDFX_DEBUG;
/* dirty hacks */
#define FX_RESCALE_BIG_TEXURES_HACK 1
-#define FX_COMPRESS_S3TC_AS_FXT1_HACK 0
+#define FX_COMPRESS_S3TC_AS_FXT1_HACK 1
#endif
diff --git a/src/mesa/drivers/glide/fxg.c b/src/mesa/drivers/glide/fxg.c
index c06b8dec2fb..afb9441aded 100644
--- a/src/mesa/drivers/glide/fxg.c
+++ b/src/mesa/drivers/glide/fxg.c
@@ -1364,7 +1364,7 @@ void FX_CALL trap_grStippleMode (GrStippleMode_t mode)
{
#define FN_NAME "grStippleMode"
TRAP_LOG("%s(%s)\n", FN_NAME, TRP_STIPPLEMODE(mode));
- grStippleMode(mode);
+ grStippleMode(mode); /* some Glide libs don't have it; not used anyway */
#undef FN_NAME
}
@@ -1372,7 +1372,7 @@ void FX_CALL trap_grStipplePattern (GrStipplePattern_t mode)
{
#define FN_NAME "grStipplePattern"
TRAP_LOG("%s(%08lx)\n", FN_NAME, mode);
- grStipplePattern(mode);
+ grStipplePattern(mode); /* some Glide libs don't have it; not used anyway */
#undef FN_NAME
}
diff --git a/src/mesa/drivers/glide/fxopengl.def b/src/mesa/drivers/glide/fxopengl.def
index 86ff1001166..fecbb253cf9 100644
--- a/src/mesa/drivers/glide/fxopengl.def
+++ b/src/mesa/drivers/glide/fxopengl.def
@@ -19,8 +19,8 @@ EXPORTS
glBindTexture
glBindTextureEXT
glBitmap
- glBlendColor
- glBlendColorEXT
+;glBlendColor
+;glBlendColorEXT
glBlendEquation
glBlendEquationEXT
glBlendFunc
diff --git a/src/mesa/drivers/glide/fxwgl.c b/src/mesa/drivers/glide/fxwgl.c
index cb098fa2ef4..0b0197d3ecc 100644
--- a/src/mesa/drivers/glide/fxwgl.c
+++ b/src/mesa/drivers/glide/fxwgl.c
@@ -510,7 +510,8 @@ wglGetProcAddress(LPCSTR lpszProc)
int i;
PROC p = (PROC) _glapi_get_proc_address((const char *) lpszProc);
- if (p)
+ /* [dBorca] we can't do BlendColor... yet */
+ if (p && strcmp(lpszProc, "glBlendColor") && strcmp(lpszProc, "glBlendColorEXT"))
return p;
for (i = 0; wgl_ext[i].name; i++) {