mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
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.
This commit is contained in:
parent
325062f753
commit
8b83b96c1b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76789
31
x11-toolkits/plib/files/patch-src::ssg::ssg.cxx
Normal file
31
x11-toolkits/plib/files/patch-src::ssg::ssg.cxx
Normal file
@ -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 ( "." ) ;
|
Loading…
Reference in New Issue
Block a user