]> git.cworth.org Git - apitrace/blobdiff - retrace/glws_egl_xlib.cpp
cli: Don't use the DLL injection method for OpenGL on Windows 8.
[apitrace] / retrace / glws_egl_xlib.cpp
index 5aacdfed2b5bea5c0b738b907711d936610a93f8..6bfc40d600f45ad256137c10329acf111ccd1f20 100644 (file)
@@ -160,7 +160,7 @@ public:
     recreate(void) {
         EGLContext currentContext = eglGetCurrentContext();
         EGLSurface currentDrawSurface = eglGetCurrentSurface(EGL_DRAW);
-        EGLSurface currentReadSurface = eglGetCurrentSurface(EGL_DRAW);
+        EGLSurface currentReadSurface = eglGetCurrentSurface(EGL_READ);
         bool rebindDrawSurface = currentDrawSurface == surface;
         bool rebindReadSurface = currentReadSurface == surface;
 
@@ -193,8 +193,6 @@ public:
 
         Drawable::resize(w, h);
 
-        XResizeWindow(display, window, w, h);
-
         // Tell the window manager to respect the requested size
         XSizeHints size_hints;
         size_hints.max_width  = size_hints.min_width  = w;
@@ -202,6 +200,8 @@ public:
         size_hints.flags = PMinSize | PMaxSize;
         XSetWMNormalHints(display, window, &size_hints);
 
+        XResizeWindow(display, window, w, h);
+
         waitForEvent(ConfigureNotify);
 
         eglWaitNative(EGL_CORE_NATIVE_ENGINE);