summaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl.c')
-rw-r--r--src/gl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gl.c b/src/gl.c
index 18947d5..a6777a9 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -55,10 +55,11 @@ int lglBlitFramebuffer( lua_State *L ) {
dstRect.x, dstRect.y, dstRect.width, dstRect.height,
mask,
filter
- // GL_COLOR_BUFFER_BIT, // mask
- // GL_NEAREST // filter
);
+ glBindFramebuffer( GL_READ_FRAMEBUFFER, 0 );
+ glBindFramebuffer( GL_DRAW_FRAMEBUFFER, 0 );
+
lua_pushboolean( L, true );
return 1;