From 338589f900ff27e25dfcce63322b84daf7678326 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Sat, 11 Sep 2010 10:50:16 +0000 Subject: [PATCH] zzogl: flush instead of sync to be sure the size is correct git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3753 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/GLWinX11.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/zzogl-pg/opengl/GLWinX11.cpp b/plugins/zzogl-pg/opengl/GLWinX11.cpp index 0477845251..7bea84feca 100644 --- a/plugins/zzogl-pg/opengl/GLWinX11.cpp +++ b/plugins/zzogl-pg/opengl/GLWinX11.cpp @@ -227,7 +227,8 @@ void GLWindow::ToggleFullscreen() XUnlockDisplay(glDisplay); // Apply the change - XSync(glDisplay, False); + // Note: Xsync is not enough. All pending event must be flush. + XFlush(glDisplay); // update info structure GetWindowSize();