masked out unsupported glBlendColor (some games check only the proc addr)

This commit is contained in:
Daniel Borca 2004-06-03 07:14:27 +00:00
parent 8f980b0e74
commit 93c91c3863
7 changed files with 16 additions and 9 deletions

View file

@ -185,6 +185,11 @@ MESA_FX_MAXLOD
"9" - 512x512 textures
"10" - 1024x1024 textures
"11" - 2048x2048 textures
MESA_3DFX_STRING
OS: all
HW: all
Desc: advertise "3dfx" substring in GL_RENDERER
Note: used by some games aware by 3dfx hw limitations
MESA_GLX_FX
OS: win32, linux
HW: selective

View file

@ -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

View file

@ -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" : "");

View file

@ -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

View file

@ -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
}

View file

@ -19,8 +19,8 @@ EXPORTS
glBindTexture
glBindTextureEXT
glBitmap
glBlendColor
glBlendColorEXT
;glBlendColor
;glBlendColorEXT
glBlendEquation
glBlendEquationEXT
glBlendFunc

View file

@ -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++) {