mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
Prevent rendering and multiple WM_SIZE events when switching between windowed and fullscreen
May help #6295 but also it may not, I can't test it as I don't have that GPU. Also gets rid of some outdated code.
This commit is contained in:
1 parent
498136bbf8
commit
56cee3c00e
5 files changed
+42
-42
No files matched your search
@@ -21,20 +21,6 @@ static int xres, yres;
|
||||
// TODO: Make config?
|
||||
static bool enableGLDebug = false;
|
||||
|
||||
void GL_Resized() {
|
||||
if (!hWnd)
|
||||
return;
|
||||
RECT rc;
|
||||
GetWindowRect(hWnd, &rc);
|
||||
xres = rc.right - rc.left; //account for border :P
|
||||
yres = rc.bottom - rc.top;
|
||||
|
||||
if (yres == 0)
|
||||
yres = 1;
|
||||
glstate.viewport.set(0, 0, xres, yres);
|
||||
glstate.viewport.restore();
|
||||
}
|
||||
|
||||
void GL_SwapBuffers() {
|
||||
SwapBuffers(hDC);
|
||||
}
|
||||
@@ -253,8 +239,6 @@ bool GL_Init(HWND window, std::string *error_message) {
|
||||
glDebugMessageCallbackARB((GLDEBUGPROCARB)&DebugCallbackARB, 0); // print debug output to stderr
|
||||
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
|
||||
}
|
||||
|
||||
GL_Resized(); // Set up our perspective GL screen
|
||||
return true; // Success
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user