diff options
| author | archshift <admin@archshift.com> | 2014-08-21 12:39:03 -0700 |
|---|---|---|
| committer | archshift <admin@archshift.com> | 2014-08-21 12:50:42 -0700 |
| commit | 7e2534ee47dfa427140a1c307c2a920a52fd11f0 (patch) | |
| tree | 76b823781eebce86d00efeea7fe95f5df051c8c0 /Source/Core/DolphinWX/GLInterface/GLX.cpp | |
| parent | f17dcd201906c33074d5979390768ed74eb9709f (diff) | |
Fixed black screen on game start for X11 contexts.
Diffstat (limited to 'Source/Core/DolphinWX/GLInterface/GLX.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/GLInterface/GLX.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/GLInterface/GLX.cpp b/Source/Core/DolphinWX/GLInterface/GLX.cpp index acfcab6a69..b7741835ca 100644 --- a/Source/Core/DolphinWX/GLInterface/GLX.cpp +++ b/Source/Core/DolphinWX/GLInterface/GLX.cpp @@ -97,6 +97,17 @@ bool cInterfaceGLX::Create(void *window_handle) XWindow.Initialize(dpy); Window parent = (Window)window_handle; + + XWindowAttributes attribs; + if (!XGetWindowAttributes(dpy, parent, &attribs)) + { + ERROR_LOG(VIDEO, "Window attribute retrieval failed"); + return false; + } + + s_backbuffer_width = attribs.width; + s_backbuffer_height = attribs.height; + win = XWindow.CreateXWindow(parent, vi); return true; } |
