mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
Make another adjustment to glXQueryExtensions
Use GDK/GTK to get the X display instead of glXGetCurrentDisplay(). For #985. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
@@ -3,12 +3,14 @@
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
|
||||
#if defined(__WXGTK__) && defined(HAVE_XSS)
|
||||
#ifdef __WXGTK__
|
||||
#include <X11/Xlib.h>
|
||||
#define Status int
|
||||
#include <X11/extensions/scrnsaver.h>
|
||||
#include <gdk/gdkx.h>
|
||||
#include <gtk/gtk.h>
|
||||
#ifdef HAVE_XSS
|
||||
#include <X11/extensions/scrnsaver.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <wx/dcbuffer.h>
|
||||
@@ -2170,7 +2172,7 @@ void GLDrawingPanel::DrawingPanelInit()
|
||||
static PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI = NULL;
|
||||
static PFNGLXSWAPINTERVALMESAPROC glXSwapIntervalMESA = NULL;
|
||||
|
||||
auto display = glXGetCurrentDisplay();
|
||||
auto display = GDK_WINDOW_XDISPLAY(gtk_widget_get_window(wxGetApp().frame->GetHandle()));
|
||||
|
||||
char* glxQuery = (char*)glXQueryExtensionsString(display, DefaultScreen(display));
|
||||
|
||||
|
Reference in New Issue
Block a user