Browse Source

Make buffer binding constant.

All Buffer methods are technically constant, but setting data on constant
buffer just shouldn't be allowed.
vectorfields
Vladimír Vondruš 16 years ago
parent
commit
37e2d44bd6
  1. 4
      src/Buffer.h

4
src/Buffer.h

@ -118,12 +118,12 @@ class Buffer {
}
/** @brief Bind buffer */
inline void bind() {
inline void bind() const {
glBindBuffer(_type, buffer);
}
/** @brief Unbind buffer */
inline void unbind() {
inline void unbind() const {
glBindBuffer(_type, 0);
}

Loading…
Cancel
Save