73c50fd1d5
Add DragonFly support.
40 lines
1.9 KiB
Text
40 lines
1.9 KiB
Text
$NetBSD: patch-aa,v 1.3 2007/02/19 19:16:09 joerg Exp $
|
|
|
|
--- src/qgl.c.orig 2007-02-19 18:37:03.000000000 +0000
|
|
+++ src/qgl.c
|
|
@@ -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(__DragonFly__)
|
|
/*
|
|
//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(__DragonFly__)
|
|
/*
|
|
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(__DragonFly__)
|
|
#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(__DragonFly__)
|
|
/*
|
|
qfxMesaCreateContext = GPA("fxMesaCreateContext");
|
|
qfxMesaCreateBestContext = GPA("fxMesaCreateBestContext");
|