GLX error codes

  • Follow


        Hi!

    glXMakeContextCurrent() returns False on error, and according to the man
page there are different error codes. How can the error code be accessed?
glGetError() returns 0 even after a failed call to glXMakeContextCurrent().

        Thanks in advance,
                Markus


-- 
Markus Grabner - Computer Graphics and Vision
Graz University of Technology, Inffeldgasse 16/II, 8010 Graz, Austria
Phone: +43/316/873-5041, Fax: +43/316/873-5050
Email: grabner@icg.tu-graz.ac.at, WWW: http://www.icg.tu-graz.ac.at/~grabner
0
Reply Markus 8/13/2003 12:38:29 PM

In article <3f3a3145$0$19360$3b214f66@aconews.univie.ac.at>,
Markus Grabner	<grabner@icg.tu-graz.ac.at> wrote:
>    glXMakeContextCurrent() returns False on error, and according to the man
>page there are different error codes. How can the error code be accessed?
>glGetError() returns 0 even after a failed call to glXMakeContextCurrent().

    GLX is an X extension; errors show up as error events from the
server, in the X event stream.
    Jon Leech
    SGI
0
Reply nospam 8/15/2003 12:45:21 AM


On 15 Aug 2003 00:45:21 GMT, nospam@oddhack.engr.sgi.com (Jon Leech)
wrote:

>In article <3f3a3145$0$19360$3b214f66@aconews.univie.ac.at>,
>Markus Grabner	<grabner@icg.tu-graz.ac.at> wrote:
>>    glXMakeContextCurrent() returns False on error, and according to the man
>>page there are different error codes. How can the error code be accessed?
>>glGetError() returns 0 even after a failed call to glXMakeContextCurrent().
>
>    GLX is an X extension; errors show up as error events from the
>server, in the X event stream.

Still, a default GLX error here at my SGI calls abort() after printing
the message.
If glXMakeCurrent() returns FALSE there's not a lot of information
available on why, although you'd expect an X BadMatch or alike to be
thrown (and it doesn't look like that, given that the program
continues to run).


Ruud van Gaal
Free car sim: http://www.racer.nl/
Pencil art  : http://www.marketgraph.nl/gallery/
0
Reply KILLSPAMruud 8/15/2003 12:56:10 PM

2 Replies
302 Views

(page loaded in 0.547 seconds)

Similiar Articles:










7/26/2012 9:56:50 AM


Reply: