summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dos
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2004-12-15 07:54:20 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2004-12-15 07:54:20 +0000
commit654dccfd856329bbb66f10d6096a206e33fa397a (patch)
treeb22ce0a2251a6f5d40a1253662e8f2c98b0e6fb6 /src/mesa/drivers/dos
parentea3885812704645944752887d892c38a46710956 (diff)
added DMesaProc type to prevent gcc 3.4.3 warnings.
sw tc is disabled by default
Diffstat (limited to 'src/mesa/drivers/dos')
-rw-r--r--src/mesa/drivers/dos/dmesa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dos/dmesa.c b/src/mesa/drivers/dos/dmesa.c
index e0b2cf52b1..9688dd95b2 100644
--- a/src/mesa/drivers/dos/dmesa.c
+++ b/src/mesa/drivers/dos/dmesa.c
@@ -63,7 +63,7 @@
#include "GL/dmesa.h"
-#define SWTC 1 /* SW texture compression */
+#define SWTC 0 /* SW texture compression */
/*
@@ -1351,10 +1351,10 @@ DMesaGetCurrentBuffer (void)
}
-void *
+DMesaProc
DMesaGetProcAddress (const char *name)
{
- void *p = (void *)_glapi_get_proc_address(name);
+ DMesaProc p = (DMesaProc)_glapi_get_proc_address(name);
/* TODO: handle DMesa* namespace
if (p == NULL) {
@@ -1411,7 +1411,7 @@ DMesaGetIntegerv (GLenum pname, GLint *params)
}
-#if (((__DJGPP__ << 8) | __DJGPP_MINOR__) >= 0x204) && USE_EXTERNAL_DXTN_LIB
+#if SWTC && (((__DJGPP__ << 8) | __DJGPP_MINOR__) >= 0x204)
#include <sys/dxe.h>
extern_asm(___dj_assert);