aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-08-20 01:37:33 +0200
committerArisotura <thetotalworm@gmail.com>2020-08-20 01:37:33 +0200
commit0688a15e47eeb8a2761e0d318b8686a9728ce227 (patch)
tree36f73ddccf03d9fec4283c2768df97b3131e9916 /src
parent959e7f568da28872058c7e266db6aca1cc3f464c (diff)
blarg
Diffstat (limited to 'src')
-rw-r--r--src/GPU3D_OpenGL.cpp4
-rw-r--r--src/GPU_OpenGL.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp
index f7b9b42..debb5fa 100644
--- a/src/GPU3D_OpenGL.cpp
+++ b/src/GPU3D_OpenGL.cpp
@@ -372,6 +372,8 @@ bool Init()
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB5_A1, 1024, 48, 0, GL_RGBA, GL_UNSIGNED_SHORT_1_5_5_5_REV, NULL);
+ glBindFramebuffer(GL_FRAMEBUFFER, 0);
+
return true;
}
@@ -479,6 +481,8 @@ void SetRenderSettings(GPU::RenderSettings& settings)
glBindBuffer(GL_PIXEL_PACK_BUFFER, PixelbufferID);
glBufferData(GL_PIXEL_PACK_BUFFER, 256*192*4, NULL, GL_DYNAMIC_READ);
+ glBindFramebuffer(GL_FRAMEBUFFER, 0);
+
//glLineWidth(scale);
//glLineWidth(1.5);
}
diff --git a/src/GPU_OpenGL.cpp b/src/GPU_OpenGL.cpp
index b460e07..359e9cd 100644
--- a/src/GPU_OpenGL.cpp
+++ b/src/GPU_OpenGL.cpp
@@ -121,6 +121,8 @@ bool Init()
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ glBindFramebuffer(GL_FRAMEBUFFER, 0);
+
return true;
}
@@ -157,6 +159,8 @@ void SetRenderSettings(RenderSettings& settings)
glBindFramebuffer(GL_FRAMEBUFFER, CompScreenOutputFB);
glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, CompScreenOutputTex, 0);
glDrawBuffers(1, fbassign);
+
+ glBindFramebuffer(GL_FRAMEBUFFER, 0);
}