diff --git a/src/Texture.h b/src/Texture.h index fe7c56e3d..1a6fa84e6 100644 --- a/src/Texture.h +++ b/src/Texture.h @@ -130,7 +130,7 @@ template class Texture { /** @brief Bind texture for usage / rendering */ inline void bind() const { - glBindTexture(dimensions, texture); + glBindTexture(target, texture); } /** @@ -140,7 +140,7 @@ template class Texture { * particular one. */ inline void unbind() const { - glBindTexture(dimensions, texture); + glBindTexture(target, 0); } /**