Browse Source

Fixed wrong target passed to glBindTexture.

WTF? How it is possible that it was working?
vectorfields
Vladimír Vondruš 15 years ago
parent
commit
08c967a6ae
  1. 4
      src/Texture.h

4
src/Texture.h

@ -130,7 +130,7 @@ template<size_t dimensions> class Texture {
/** @brief Bind texture for usage / rendering */
inline void bind() const {
glBindTexture(dimensions, texture);
glBindTexture(target, texture);
}
/**
@ -140,7 +140,7 @@ template<size_t dimensions> class Texture {
* particular one.
*/
inline void unbind() const {
glBindTexture(dimensions, texture);
glBindTexture(target, 0);
}
/**

Loading…
Cancel
Save