mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
masked out unsupported glBlendColor (some games check only the proc addr)
This commit is contained in:
parent
8f980b0e74
commit
93c91c3863
7 changed files with 16 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" : "");
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ EXPORTS
|
|||
glBindTexture
|
||||
glBindTextureEXT
|
||||
glBitmap
|
||||
glBlendColor
|
||||
glBlendColorEXT
|
||||
;glBlendColor
|
||||
;glBlendColorEXT
|
||||
glBlendEquation
|
||||
glBlendEquationEXT
|
||||
glBlendFunc
|
||||
|
|
|
|||
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue