On Freitag 28 Oktober 2005 22:32, Josh Babcock wrote:
> >>X Error of failed request:  GLXUnsupportedPrivateRequest
> >>  Major opcode of failed request:  145 (GLX)
> >>  Minor opcode of failed request:  16 (X_GLXVendorPrivate)
> >>  Serial number of failed request:  31
> >>  Current serial number in output stream:  32
> Do you still have that patch around? I would like to play with it. Using
> fglrx with Debian is extremely painful.
:)
It is, but it is the only option at the moment for me.
The r300 driver is far away from being usefull for fg ...
Anyway, the radeon one (don't know about the r200), has huge problems with 
Haralds shadows which look great in the fglrx case.

Attached is that ugly workaround for that error.
It effectively disables RenderTexture for drivers crashing on such requests.

   Greetings

           Mathias

-- 
Mathias Fröhlich, email: [EMAIL PROTECTED]
? simgear/math/linalg.h
? simgear/misc/swap_test
? simgear/scene/fgsg
Index: simgear/screen/RenderTexture.cpp
===================================================================
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/screen/RenderTexture.cpp,v
retrieving revision 1.10
diff -u -r1.10 RenderTexture.cpp
--- simgear/screen/RenderTexture.cpp	5 Sep 2005 09:02:56 -0000	1.10
+++ simgear/screen/RenderTexture.cpp	31 Oct 2005 07:04:52 -0000
@@ -456,6 +456,11 @@
 
 #elif defined( __APPLE__ )
 #else // !_WIN32
+
+/////// Ugly workaround for gl drivers not working correctly with pbuffers.
+    return false;
+
+
     _pDisplay = glXGetCurrentDisplay();
     GLXContext context = glXGetCurrentContext();
     int screen = DefaultScreen(_pDisplay);
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to