From 37e2d44bd6aed08c1bbc4b76495020f6e4f9b0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 27 Dec 2010 23:02:41 +0100 Subject: [PATCH] Make buffer binding constant. All Buffer methods are technically constant, but setting data on constant buffer just shouldn't be allowed. --- src/Buffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Buffer.h b/src/Buffer.h index df023d53d..1504947a5 100644 --- a/src/Buffer.h +++ b/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); }