summary refs log tree commit diff
path: root/src/Texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Texture.cpp')
-rw-r--r--src/Texture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Texture.cpp b/src/Texture.cpp
index d32a75a..d2e1465 100644
--- a/src/Texture.cpp
+++ b/src/Texture.cpp
@@ -15,6 +15,8 @@ Texture::Texture(const Image::RawImage& image) {
 
     glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, image.width(), image.height(), 0, GL_RGB, GL_UNSIGNED_BYTE, image.raw());
     glGenerateMipmap(GL_TEXTURE_2D);
+
+    glBindTexture(GL_TEXTURE_2D, 0);
 }
 
 void Texture::bind() {