mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
use opengl_makecurrent before save
and 2 small sdl/wx changes git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1526 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -34,14 +34,6 @@ struct RECT
|
||||
|
||||
#include "GLUtil.h"
|
||||
|
||||
#ifndef USE_SDL
|
||||
#define USE_SDL 0
|
||||
#endif
|
||||
#if USE_SDL
|
||||
#include <SDL.h>
|
||||
#endif
|
||||
|
||||
|
||||
// Handles OpenGL and the window
|
||||
|
||||
// externals
|
||||
@ -514,6 +506,9 @@ bool OpenGL_MakeCurrent()
|
||||
MessageBox(NULL,"(5) Can't Activate The GL Rendering Context.","ERROR",MB_OK|MB_ICONEXCLAMATION);
|
||||
return false;
|
||||
}
|
||||
#elif defined(USE_WX) && USE_WX
|
||||
GLWin.glCanvas->SetCurrent(*GLWin.glCtxt);
|
||||
return true;
|
||||
#elif defined(HAVE_X11) && HAVE_X11
|
||||
Window winDummy;
|
||||
unsigned int borderDummy;
|
||||
|
Reference in New Issue
Block a user