diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-08-06 00:44:21 -0400 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-08-19 10:05:58 -0400 |
| commit | 7ca8d8dfc7e9bf3b09f9cab929c98f9e607c298b (patch) | |
| tree | 898ec9491b88ef164c7b289cbbe7af7649a43d47 /Source/Core/DolphinWX/GLInterface/GLX.cpp | |
| parent | 6e312dce91f3b5cbb895f2d60d7eea294fdbc2d5 (diff) | |
Core: Don't pass through a reference to the window handle
Now that MainNoGUI is properly architected and GLX doesn't need to
sometimes craft its own windows sometimes which we have to thread back
into MainNoGUI, we don't need to thread the window handle that GLX
creates at all.
This removes the reference to pass back here, and the g_pWindowHandle
always be the same as the window returned by Host_GetRenderHandle().
A future cleanup could remove g_pWindowHandle entirely.
Diffstat (limited to 'Source/Core/DolphinWX/GLInterface/GLX.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/GLInterface/GLX.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/GLInterface/GLX.cpp b/Source/Core/DolphinWX/GLInterface/GLX.cpp index c7eb3eb239..69c376f4f2 100644 --- a/Source/Core/DolphinWX/GLInterface/GLX.cpp +++ b/Source/Core/DolphinWX/GLInterface/GLX.cpp @@ -37,7 +37,7 @@ void cInterfaceGLX::Swap() // Create rendering window. // Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize() -bool cInterfaceGLX::Create(void *&window_handle) +bool cInterfaceGLX::Create(void *window_handle) { int glxMajorVersion, glxMinorVersion; @@ -102,7 +102,6 @@ bool cInterfaceGLX::Create(void *&window_handle) } XWindow.CreateXWindow(); - window_handle = (void *)GLWin.win; return true; } |
