From 13c75615492a3cc678ae1bb4e7927747c89a7657 Mon Sep 17 00:00:00 2001 From: milek7 Date: Thu, 19 Jul 2018 00:33:36 +0200 Subject: [PATCH] texturemanager binding fix --- Texture.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Texture.cpp b/Texture.cpp index 03252a1b..f41f1006 100644 --- a/Texture.cpp +++ b/Texture.cpp @@ -1006,10 +1006,8 @@ texture_manager::create(std::string Filename, bool const Loadnow , GLint fh) { void texture_manager::bind( std::size_t const Unit, texture_handle const Texture ) { - mark_as_used(Texture); - if (Texture != null_handle) - texture(Texture).bind(Unit); + mark_as_used(Texture).bind(Unit); else opengl_texture::unbind(Unit); }