From 8ec223cd4ffec8ff883e022db94714a0b814ae58 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 14 Oct 2022 13:30:15 +0200 Subject: Textured Cube --- src/Texture.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Texture.cpp') 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() { -- cgit 1.4.1