aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/glx/indirect.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-06-19 16:11:28 +0200
committermarha <marha@users.sourceforge.net>2013-06-19 16:13:17 +0200
commit6ac57d622cdabb2db9f8dce51f0313892e6bd1aa (patch)
tree02bc19839312715a18a9988908f0ce97b26f7428 /xorg-server/hw/xwin/glx/indirect.c
parent2aac4e532f0def350ef3faea22627f3033488187 (diff)
downloadvcxsrv-6ac57d622cdabb2db9f8dce51f0313892e6bd1aa.tar.gz
vcxsrv-6ac57d622cdabb2db9f8dce51f0313892e6bd1aa.tar.bz2
vcxsrv-6ac57d622cdabb2db9f8dce51f0313892e6bd1aa.zip
Do not use transparent window for the opengl window. It generates unnecessary flickering.
Diffstat (limited to 'xorg-server/hw/xwin/glx/indirect.c')
-rw-r--r--xorg-server/hw/xwin/glx/indirect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xorg-server/hw/xwin/glx/indirect.c b/xorg-server/hw/xwin/glx/indirect.c
index acda74da5..082c5ad3e 100644
--- a/xorg-server/hw/xwin/glx/indirect.c
+++ b/xorg-server/hw/xwin/glx/indirect.c
@@ -608,7 +608,7 @@ glxWinScreenProbe(ScreenPtr pScreen)
WNDCLASSEX wc;
glTestWndClass=1;
wc.cbSize = sizeof(WNDCLASSEX);
- wc.style = CS_OWNDC ;
+ wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC ;
wc.lpfnWndProc = GlxWindowProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
@@ -627,7 +627,7 @@ glxWinScreenProbe(ScreenPtr pScreen)
hwnd = CreateWindowExA(0,
WIN_GL_WINDOW_CLASS,
"XWin GL Renderer Capabilities Test Window",
- 0, 0, 0, 0, 0, NULL, NULL, GetModuleHandle(NULL),
+ 0, 0, 0, 0, 0, NULL, NULL, g_hInstance,
NULL);
if (hwnd == NULL)
LogMessage(X_ERROR,