summaryrefslogtreecommitdiff
path: root/x11-toolkits/plib
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-03-03 10:35:33 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-03-03 10:35:33 +0000
commit8b83b96c1b542c4387ab6e0858eaf7a0db5bde0b (patch)
treed0dda91ea574f972682f6fe657dcad133ae03921 /x11-toolkits/plib
parentTry to get it out of bento's failed ports list (diff)
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.
Notes
Notes: svn path=/head/; revision=76789
Diffstat (limited to 'x11-toolkits/plib')
-rw-r--r--x11-toolkits/plib/files/patch-src::ssg::ssg.cxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-toolkits/plib/files/patch-src::ssg::ssg.cxx b/x11-toolkits/plib/files/patch-src::ssg::ssg.cxx
new file mode 100644
index 000000000000..fe2f93117904
--- /dev/null
+++ b/x11-toolkits/plib/files/patch-src::ssg::ssg.cxx
@@ -0,0 +1,31 @@
+--- 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 ( "." ) ;