diff options
| author | Mel <einebeere@gmail.com> | 2022-10-14 13:30:15 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-14 13:30:15 +0200 |
| commit | 8ec223cd4ffec8ff883e022db94714a0b814ae58 (patch) | |
| tree | 65347fb1981ce2bb76ac84e0a82ab215f92a9fe0 /src/Texture.cpp | |
| parent | cb3ddae385c03a8830d39dc37fcd5bf273524d5e (diff) | |
| download | meowcraft-8ec223cd4ffec8ff883e022db94714a0b814ae58.tar.zst meowcraft-8ec223cd4ffec8ff883e022db94714a0b814ae58.zip | |
Textured Cube
Diffstat (limited to 'src/Texture.cpp')
| -rw-r--r-- | src/Texture.cpp | 2 |
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() { |
