aboutsummaryrefslogtreecommitdiff
path: root/src/GPU3D_OpenGL.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-25 19:36:47 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-25 19:36:47 +0200
commit70a324371451b872dc5b4bba3cff696ad7a1cbb3 (patch)
treef708cb421ee0aeeccf92883421368ed8647509ba /src/GPU3D_OpenGL.cpp
parent8c93a4557419ccdec2598af32e3305bdefbbd23b (diff)
simpler GPU-compositing. will make it easier to grab neighbor 2D/3D pixels individually for filtering.
Diffstat (limited to 'src/GPU3D_OpenGL.cpp')
-rw-r--r--src/GPU3D_OpenGL.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp
index 9144792..c759147 100644
--- a/src/GPU3D_OpenGL.cpp
+++ b/src/GPU3D_OpenGL.cpp
@@ -890,6 +890,8 @@ void RenderSceneChunk(int y, int h)
glBindBuffer(GL_ARRAY_BUFFER, ClearVertexBufferID);
glBindVertexArray(ClearVertexArrayID);
glDrawArrays(GL_TRIANGLES, 0, 2*3);
+
+ glFlush();
}
}