aboutsummaryrefslogtreecommitdiff
path: root/src/texture_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/texture_buffer.h')
-rw-r--r--src/texture_buffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/texture_buffer.h b/src/texture_buffer.h
index 8afe240..08c617b 100644
--- a/src/texture_buffer.h
+++ b/src/texture_buffer.h
@@ -46,6 +46,7 @@ public:
auto guard = use();
glViewport(0, 0, width, height);
+ glBindTexture(GL_TEXTURE_2D, _texture);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, (void*)0);
}