aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-24 02:35:25 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-24 02:35:25 +0200
commit9e2f47f4a0862e05f05cebbc5fae4e322c5b5d9f (patch)
treef4ae4eb9c5e2ec48ce39161cb7d180808b2ae532 /src/libui_sdl
parent0bb3321262fcdff4edc3636e7301db70e5ff0533 (diff)
fix more bugs
Diffstat (limited to 'src/libui_sdl')
-rw-r--r--src/libui_sdl/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp
index e17827d..c302b7e 100644
--- a/src/libui_sdl/main.cpp
+++ b/src/libui_sdl/main.cpp
@@ -375,7 +375,7 @@ void GLScreen_DrawScreen()
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, GL_ScreenTexture);
- if (GPU::Framebuffer[frontbuf][1])
+ if (GPU::Framebuffer[frontbuf][0] && GPU::Framebuffer[frontbuf][1])
{
if (GPU3D::Renderer == 0)
{
@@ -922,7 +922,7 @@ void OnAreaDraw(uiAreaHandler* handler, uiArea* area, uiAreaDrawParams* params)
int frontbuf = GPU::FrontBuffer;
if (!ScreenBitmap[0] || !ScreenBitmap[1]) return;
- if (!GPU::Framebuffer[frontbuf][1]) return;
+ if (!GPU::Framebuffer[frontbuf][0] || !GPU::Framebuffer[frontbuf][1]) return;
uiRect top = {0, 0, 256, 192};
uiRect bot = {0, 0, 256, 192};