diff options
author | Daniel Borca <[email protected]> | 2004-02-16 07:32:27 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-02-16 07:32:27 +0000 |
commit | 45f4c5ec3bf30d421dba1ffbffa97f5c4a14e942 (patch) | |
tree | 5f03e59d9174080ad0665e95e8e97c2e92ad38c4 /src/mesa/drivers/glide/fxg.c | |
parent | a49a08d014a36a06afc0a8bec0bfefb1c2243b31 (diff) |
cleanup and some WGL PIXELFORMAT issues
Diffstat (limited to 'src/mesa/drivers/glide/fxg.c')
-rw-r--r-- | src/mesa/drivers/glide/fxg.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/mesa/drivers/glide/fxg.c b/src/mesa/drivers/glide/fxg.c index 7f75f1292c2..d49878ae18d 100644 --- a/src/mesa/drivers/glide/fxg.c +++ b/src/mesa/drivers/glide/fxg.c @@ -814,6 +814,7 @@ const char *TRP_TXCOMPRESS (FxU32 compress) /* ** glide extensions */ +void (FX_CALL *real_grSetNumPendingBuffers) (FxI32 NumPendingBuffers); char * (FX_CALL *real_grGetRegistryOrEnvironmentStringExt) (char *theEntry); void (FX_CALL *real_grGetGammaTableExt) (FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue); void (FX_CALL *real_grChromaRangeModeExt) (GrChromakeyMode_t mode); @@ -1024,14 +1025,6 @@ FxBool FX_CALL trap_grSstWinClose (GrContext_t context) #undef FN_NAME } -void FX_CALL trap_grSetNumPendingBuffers (FxI32 NumPendingBuffers) -{ -#define FN_NAME "grSetNumPendingBuffers" - TRAP_LOG("%s(%ld)\n", FN_NAME, NumPendingBuffers); - grSetNumPendingBuffers(NumPendingBuffers); -#undef FN_NAME -} - FxBool FX_CALL trap_grSelectContext (GrContext_t context) { #define FN_NAME "grSelectContext" @@ -1821,6 +1814,15 @@ void FX_CALL trap_guFogGenerateLinear (GrFog_t *fogtable, /* ** glide extensions */ +void FX_CALL trap_grSetNumPendingBuffers (FxI32 NumPendingBuffers) +{ +#define FN_NAME "grSetNumPendingBuffers" + TRAP_LOG("%s(%ld)\n", FN_NAME, NumPendingBuffers); + assert(real_grSetNumPendingBuffers); + (*real_grSetNumPendingBuffers)(NumPendingBuffers); +#undef FN_NAME +} + char *FX_CALL trap_grGetRegistryOrEnvironmentStringExt (char *theEntry) { #define FN_NAME "grGetRegistryOrEnvironmentStringExt" @@ -2243,14 +2245,17 @@ void tdfx_hook_glide (struct tdfx_glide *Glide) #if DEBUG_TRAP #define GET_EXT_ADDR(name) *(GrProc *)&real_##name = grGetProcAddress(#name), Glide->name = trap_##name #define GET_EXT_FAKE(name) GET_EXT_ADDR(name); if (real_##name == NULL) real_##name = fake_##name +#define GET_EXT_NULL(name) GET_EXT_ADDR(name); if (real_##name == NULL) Glide->name = NULL #else /* DEBUG_TRAP */ #define GET_EXT_ADDR(name) *(GrProc *)&Glide->name = grGetProcAddress(#name) #define GET_EXT_FAKE(name) GET_EXT_ADDR(name); if (Glide->name == NULL) Glide->name = fake_##name +#define GET_EXT_NULL(name) GET_EXT_ADDR(name) #endif /* DEBUG_TRAP */ /* ** glide extensions */ + GET_EXT_NULL(grSetNumPendingBuffers); GET_EXT_FAKE(grGetRegistryOrEnvironmentStringExt); GET_EXT_ADDR(grGetGammaTableExt); GET_EXT_ADDR(grChromaRangeModeExt); @@ -2284,9 +2289,9 @@ void tdfx_hook_glide (struct tdfx_glide *Glide) /* ** texus */ - GET_EXT_ADDR(txImgQuantize); - GET_EXT_ADDR(txMipQuantize); - GET_EXT_ADDR(txPalToNcc); + GET_EXT_NULL(txImgQuantize); + GET_EXT_NULL(txMipQuantize); + GET_EXT_NULL(txPalToNcc); #undef GET_EXT_ADDR } |