[Bug 3430] New: Changes to main sdl_gimp.c for SunOS(Solaris)

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Fri Nov 16 08:33:57 EST 2007


http://bugzilla.icculus.org/show_bug.cgi?id=3430

           Summary: Changes to main sdl_gimp.c for SunOS(Solaris)
           Product: Quake 3
           Version: SVN HEAD
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Platform
        AssignedTo: zakk at icculus.org
        ReportedBy: vincent at cojot.name
         QAContact: quake3-bugzilla at icculus.org
                CC: vincent at cojot.name


current SVN HEAD 1212 doesn't compile on Solaris because of broken system
headers
under /usr/openwin/include/GL. There is no easy way to either get SUN to fix
them or suggest that libsdl would have more sun-specific stuff so I'm proposing
the following (protected) change to sdl_gimp.c. It makes ioquake3 compile again
on Solaris:

Index: quake3-Solaris_SVN1212/trunk/code/sdl/sdl_glimp.c
===================================================================
--- quake3-Solaris_SVN1212/trunk/code/sdl/sdl_glimp.c   (revision 1212)
+++ quake3-Solaris_SVN1212/trunk/code/sdl/sdl_glimp.c   (working copy)
@@ -62,6 +62,13 @@
 #define GLimp_SetCurrentContext(ctx)
 #endif

+/* Hack because of SUN's broken GL Headers */
+#ifdef __sun
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat
s, GLfloat t);
+typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
+#endif
+
 static QGLContext opengl_context;

 typedef enum


-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the quake3-bugzilla mailing list