Annotation of ports/games/ufoai/base/patches/patch-src_tools_radiant_radiant_render_qgl_cpp, Revision 1.1
1.1 ! yason 1: $OpenBSD$
! 2: --- src/tools/radiant/radiant/render/qgl.cpp.orig Mon Apr 25 19:47:45 2011
! 3: +++ src/tools/radiant/radiant/render/qgl.cpp Mon Apr 25 19:48:56 2011
! 4: @@ -34,7 +34,7 @@
! 5: # include <wtypes.h>
! 6: PROC ( WINAPI * qwglGetProcAddress)(LPCSTR);
! 7:
! 8: -#elif defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__)
! 9: +#elif defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__) || defined (__OpenBSD__)
! 10:
! 11: # include <GL/glx.h>
! 12: # include <dlfcn.h>
! 13: @@ -55,7 +55,7 @@ void QGL_Shutdown (OpenGLBinding& table)
! 14:
! 15: #if defined(WIN32)
! 16: qwglGetProcAddress = 0;
! 17: -#elif defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__)
! 18: +#elif defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__) || defined (__OpenBSD__)
! 19: qglXQueryExtension = 0;
! 20: qglXGetProcAddressARB = 0;
! 21: #else
! 22: @@ -133,7 +133,7 @@ typedef int (QGL_DLLEXPORT *QGLFunctionPointer) ();
! 23:
! 24: QGLFunctionPointer QGL_getExtensionFunc (const char* symbol)
! 25: {
! 26: -#if defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__)
! 27: +#if defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__) || defined (__OpenBSD__)
! 28: if (qglXGetProcAddressARB == 0) {
! 29: return reinterpret_cast<QGLFunctionPointer> (glInvalidFunction);
! 30: } else {
! 31: @@ -170,7 +170,7 @@ int QGL_Init (OpenGLBinding& table)
! 32:
! 33: #if defined(WIN32)
! 34: qwglGetProcAddress = wglGetProcAddress;
! 35: -#elif defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__)
! 36: +#elif defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__) || defined (__OpenBSD__)
! 37: qglXQueryExtension = glXQueryExtension;
! 38: qglXGetProcAddressARB = (glXGetProcAddressARBProc) dlsym(RTLD_DEFAULT, "glXGetProcAddressARB");
! 39: if ((qglXQueryExtension == 0) || (qglXQueryExtension(GDK_DISPLAY(), 0, 0) != True))
CVSweb