mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 22:09:19 +02:00
texturemanager binding fix
This commit is contained in:
@@ -1006,10 +1006,8 @@ texture_manager::create(std::string Filename, bool const Loadnow , GLint fh) {
|
|||||||
void
|
void
|
||||||
texture_manager::bind( std::size_t const Unit, texture_handle const Texture ) {
|
texture_manager::bind( std::size_t const Unit, texture_handle const Texture ) {
|
||||||
|
|
||||||
mark_as_used(Texture);
|
|
||||||
|
|
||||||
if (Texture != null_handle)
|
if (Texture != null_handle)
|
||||||
texture(Texture).bind(Unit);
|
mark_as_used(Texture).bind(Unit);
|
||||||
else
|
else
|
||||||
opengl_texture::unbind(Unit);
|
opengl_texture::unbind(Unit);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user