8879afdc8c
ok oga@, claudio@ (maintainer)
40 lines
2.0 KiB
Plaintext
40 lines
2.0 KiB
Plaintext
$OpenBSD: patch-src_qgl_c,v 1.1 2008/05/25 02:54:58 jsg Exp $
|
|
--- src/qgl.c.orig Sat May 24 20:42:30 2008
|
|
+++ src/qgl.c Sat May 24 20:42:47 2008
|
|
@@ -70,7 +70,7 @@ static FILE * log_fp = NULL;
|
|
#endif
|
|
|
|
/* merged in from qgl_bsd.c -- jaq */
|
|
-#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun__)
|
|
+#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun__) || defined(__OpenBSD__)
|
|
/*
|
|
//FX Mesa Functions
|
|
fxMesaContext (*qfxMesaCreateContext)(GLuint win, GrScreenResolution_t, GrScreenRefresh_t, const GLint attribList[]);
|
|
@@ -3020,7 +3020,7 @@ void QGL_Shutdown( void )
|
|
qglVertexPointer = NULL;
|
|
qglViewport = NULL;
|
|
/* merged in from qgl_bsd.c -- jaq */
|
|
-#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__)
|
|
+#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
/*
|
|
qfxMesaCreateContext = NULL;
|
|
qfxMesaCreateBestContext = NULL;
|
|
@@ -3041,7 +3041,7 @@ void QGL_Shutdown( void )
|
|
}
|
|
|
|
/* merged in from qgl_bsd.c -- jaq */
|
|
-#if defined(__linux__) || defined (__FreeBSD__) || defined(__NetBSD__) || defined (__sun__)
|
|
+#if defined(__linux__) || defined (__FreeBSD__) || defined(__NetBSD__) || defined (__sun__) || defined(__OpenBSD__)
|
|
#define GPA( a ) dlsym( glw_state.OpenGLLib, a )
|
|
|
|
void *qwglGetProcAddress(char *symbol)
|
|
@@ -3444,7 +3444,7 @@ qboolean QGL_Init( const char *dllname )
|
|
qglVertexPointer = dllVertexPointer = GPA( "glVertexPointer" );
|
|
qglViewport = dllViewport = GPA( "glViewport" );
|
|
/* merged in from qgl_bsd.c -- jaq */
|
|
-#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun__)
|
|
+#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun__) || defined(__OpenBSD__)
|
|
/*
|
|
qfxMesaCreateContext = GPA("fxMesaCreateContext");
|
|
qfxMesaCreateBestContext = GPA("fxMesaCreateBestContext");
|