1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/x11-toolkits/plib/files/patch-src::ssg::ssg.cxx
Dag-Erling Smørgrav 8b83b96c1b ssgInit() normally checks for a valid GL context and aborts if one wasn't
found.  However, due to bugs in some versions of Mesa, it sometimes fails
even when a context exists.  Temporarily disable the context checks until
we get a working version of Mesa.
2003-03-03 10:35:33 +00:00

32 lines
567 B
C++

--- src/ssg/ssg.cxx.orig Mon Mar 3 11:25:56 2003
+++ src/ssg/ssg.cxx Mon Mar 3 11:27:40 2003
@@ -35,6 +35,7 @@
# endif
#endif
+#if 0
static bool glIsValidContext ( void )
{
#if defined(CONSOLE)
@@ -49,6 +50,7 @@
return ( glXGetCurrentContext () != NULL ) ;
#endif
}
+#endif
sgMat4 _ssgOpenGLAxisSwapMatrix =
{
@@ -105,10 +107,12 @@
void ssgInit ()
{
+#if 0
if ( ! glIsValidContext () )
{
ulSetError ( UL_FATAL, "ssgInit called without a valid OpenGL context.");
}
+#endif
ssgTexturePath ( "." ) ;
ssgModelPath ( "." ) ;