From 08c967a6ae45931579070daad6f42b10898e29c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 1 Dec 2011 17:16:41 +0100 Subject: [PATCH] Fixed wrong target passed to glBindTexture. WTF? How it is possible that it was working? --- src/Texture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /**