Please sign in to comment.
Check for Mesa rather than GLX > 1.2 when determining glXQueryDrawabl…
…e 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.
- Loading branch information...
Showing with 14 additions and 8 deletions.