Created
March 15, 2023 00:15
-
-
Save ericoporto/02189d626968f19514d2a40f797bc319 to your computer and use it in GitHub Desktop.
oglvsynclogdiff.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/Engine/gfx/ali3dogl.cpp b/Engine/gfx/ali3dogl.cpp | |
index 51c3f3e..2f235ce 100644 | |
--- a/Engine/gfx/ali3dogl.cpp | |
+++ b/Engine/gfx/ali3dogl.cpp | |
@@ -2049,9 +2049,10 @@ void OGLGraphicsDriver::SetScreenTint(int red, int green, int blue) | |
bool OGLGraphicsDriver::SetVsyncImpl(bool enabled, bool &vsync_res) | |
{ | |
+ Debug::Printf(kDbgMsg_Info, "OGL: SetVsyncImpl (%d) called", enabled); | |
if (SDL_GL_SetSwapInterval(enabled) != 0) | |
{ | |
- Debug::Printf(kDbgMsg_Error, "OGL: SetVsync (%d) failed: %s", enabled, SDL_GetError()); | |
+ Debug::Printf(kDbgMsg_Error, "OGL: SetVsyncImpl (%d) failed: %s", enabled, SDL_GetError()); | |
return false; | |
} | |
vsync_res = SDL_GL_GetSwapInterval() != 0; | |
diff --git a/Engine/gfx/gfxdriverbase.cpp b/Engine/gfx/gfxdriverbase.cpp | |
index e52389f..1843cee 100644 | |
--- a/Engine/gfx/gfxdriverbase.cpp | |
+++ b/Engine/gfx/gfxdriverbase.cpp | |
@@ -11,6 +11,7 @@ | |
// http://www.opensource.org/licenses/artistic-license-2.0.php | |
// | |
//============================================================================= | |
+#include <debug/out.h> | |
#include "gfx/ali3dexception.h" | |
#include "gfx/bitmap.h" | |
#include "gfx/gfxfilter.h" | |
@@ -66,6 +67,7 @@ Rect GraphicsDriverBase::GetRenderDestination() const | |
bool GraphicsDriverBase::SetVsync(bool enabled) | |
{ | |
+ Debug::Printf(kDbgMsg_Info, "GraphicsDriverBase: SetVsync (%d) called, Vsync was=(%d)", enabled, _mode.Vsync); | |
if (!_capsVsync || (_mode.Vsync == enabled)) | |
{ | |
return _mode.Vsync; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment