Originally posted by Irritant
View Post
Code:
diff -ur alienarena7_45//source/ref_gl/qgl.h alienarena7_45.mod//source/ref_gl/qgl.h --- alienarena7_45//source/ref_gl/qgl.h 2010-06-15 05:27:57.000000000 +0000 +++ alienarena7_45.mod//source/ref_gl/qgl.h 2010-08-01 18:00:54.338000427 +0000 @@ -558,7 +558,7 @@ #ifdef __unix__ // local function in dll -extern void *qwglGetProcAddress(char *symbol); +#define qwglGetProcAddress glXGetProcAddress extern void (*qgl3DfxSetPaletteEXT)(GLuint *); diff -ur alienarena7_45//source/ref_gl/r_postprocess.c alienarena7_45.mod//source/ref_gl/r_postprocess.c --- alienarena7_45//source/ref_gl/r_postprocess.c 2010-07-08 05:37:15.000000000 +0000 +++ alienarena7_45.mod//source/ref_gl/r_postprocess.c 2010-08-01 18:22:45.030000312 +0000 @@ -219,8 +219,7 @@ qglMatrixMode(GL_MODELVIEW); qglPushMatrix(); qglLoadIdentity(); - - if(gl_state.fbo && gl_state.hasFBOblit && atoi(&gl_config.version_string[0]) >= 3.0) { + if(gl_state.fbo && gl_state.hasFBOblit) { alpha/=1.5; //necessary because we are blending two quads @@ -269,7 +268,7 @@ qglVertex2f(-5, 10); qglEnd(); - if(gl_state.fbo && gl_state.hasFBOblit && atoi(&gl_config.version_string[0]) >= 3.0) { + if(gl_state.fbo && gl_state.hasFBOblit) { qglBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); diff -ur alienarena7_45//source/unix/qgl_unix.c alienarena7_45.mod//source/unix/qgl_unix.c --- alienarena7_45//source/unix/qgl_unix.c 2008-02-08 23:24:33.000000000 +0000 +++ alienarena7_45.mod//source/unix/qgl_unix.c 2010-08-01 18:01:20.361000407 +0000 @@ -2998,13 +2998,6 @@ #define GPA( a ) dlsym( glw_state.OpenGLLib, a ) -void *qwglGetProcAddress(char *symbol) -{ - if (glw_state.OpenGLLib) - return GPA ( symbol ); - return NULL; -} - /* ** QGL_Init **
Comment