mumble/overlay_gl
Mikkel Krautz 06e19e6fb1 Check for Mesa rather than GLX > 1.2 when determining glXQueryDrawable GLX_WIDTH/GLX_HEIGHT availability.
You cannot query for GLX_WIDTH and GLX_HEIGHT using glXQueryDrawable in Mesa.
It simply fails with an error, and crashes the program:

    X Error of failed request:  GLXBadDrawable
      Major opcode of failed request:  156 (GLX)
      Minor opcode of failed request:  29 (X_GLXGetDrawableAttributes)
      Serial number of failed request:  41
      Current serial number in output stream:  41

The old check to only allow using glXQueryDrawable using GLX > 1.2
presumably worked for older Mesa versions, but now, Mesa advertises
GLX > 1.2.

That makes the overlay practically unusable when using Mesa.

This commit changes the code path to detect Mesa instead of GLX > 1.2,
and makes the overlay work correctly on Mesa once again.
2015-06-05 13:25:51 +02:00
..
avail_mac.h Unify overlay code for Unix and OS X. 2015-02-07 23:24:47 +01:00
avail_mac.pl Mark shebanged files as executable 2015-05-12 18:51:23 +02:00
init_mac.c Unify overlay code for Unix and OS X. 2015-02-07 23:24:47 +01:00
init_unix.c Check for Mesa rather than GLX > 1.2 when determining glXQueryDrawable GLX_WIDTH/GLX_HEIGHT availability. 2015-06-05 13:25:51 +02:00
overlay_gl.plist Unify overlay code for Unix and OS X. 2015-02-07 23:24:47 +01:00
overlay_gl.pro Do not link the Linux overlay with '-z now'. 2015-06-05 13:03:05 +02:00
overlay.c Check for Mesa rather than GLX > 1.2 when determining glXQueryDrawable GLX_WIDTH/GLX_HEIGHT availability. 2015-06-05 13:25:51 +02:00