2000-02-01 03:30:29 +01:00
|
|
|
$NetBSD: patch-ac,v 1.2 2000/02/01 02:30:33 wiz Exp $
|
2000-01-13 01:35:04 +01:00
|
|
|
|
2000-02-01 03:30:29 +01:00
|
|
|
--- QW/client/gl_vidlinuxglx.c Tue Dec 21 18:45:54 1999
|
|
|
|
+++ ../work/QW/client/gl_vidlinuxglx.c Wed Jan 19 21:58:20 2000
|
|
|
|
@@ -20,7 +20,6 @@
|
|
|
|
#include <termios.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
-#include <sys/vt.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <signal.h>
|
|
|
|
@@ -560,6 +559,9 @@
|
|
|
|
|
|
|
|
void VID_Init8bitPalette(void)
|
|
|
|
{
|
2000-01-13 01:35:04 +01:00
|
|
|
+#ifdef __NetBSD__
|
2000-02-01 03:30:29 +01:00
|
|
|
+ return;
|
2000-01-13 01:35:04 +01:00
|
|
|
+#else
|
2000-02-01 03:30:29 +01:00
|
|
|
// Check for 8bit Extensions and initialize them.
|
|
|
|
int i;
|
|
|
|
GLubyte table[256][4];
|
|
|
|
@@ -580,6 +582,7 @@
|
|
|
|
}
|
|
|
|
gl3DfxSetPaletteEXT((GLuint *)table);
|
|
|
|
is8bit = true;
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
@@ -603,7 +606,12 @@
|
|
|
|
Window root;
|
|
|
|
XVisualInfo *visinfo;
|
|
|
|
|
|
|
|
+ /* For some reason this is called. It causes trouble for NetBSD
|
|
|
|
+ and sound won't work */
|
|
|
|
+
|
|
|
|
+#ifndef __NetBSD__
|
|
|
|
S_Init();
|
2000-01-13 01:35:04 +01:00
|
|
|
+#endif
|
|
|
|
|
2000-02-01 03:30:29 +01:00
|
|
|
Cvar_RegisterVariable (&vid_mode);
|
|
|
|
Cvar_RegisterVariable (&gl_ztrick);
|