Skip to content

Instantly share code, notes, and snippets.

@Milek7

Milek7/x.diff Secret

Created March 19, 2021 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Milek7/7db7375a87c4b6dd38a9236c19f7776d to your computer and use it in GitHub Desktop.
Save Milek7/7db7375a87c4b6dd38a9236c19f7776d to your computer and use it in GitHub Desktop.
diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp
index 26f6f4b4d..2f40f8cc2 100644
--- a/src/video/opengl.cpp
+++ b/src/video/opengl.cpp
@@ -1155,6 +1155,8 @@ void OpenGLBackend::ReleaseVideoBuffer(const Rect &update_rect)
}
#endif
+ return;
+
/* Update changed rect of the video buffer texture. */
if (!IsEmptyRect(update_rect)) {
_glActiveTexture(GL_TEXTURE0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment