diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-07-26 13:06:57 (GMT) |
---|---|---|
committer | Toby Tomkins <toby.tomkins@nokia.com> | 2010-07-27 00:10:58 (GMT) |
commit | aa8b52654407668100c2ecc10ba553059ad005da (patch) | |
tree | 03707825d537408234e626bed6f5344211dad0da | |
parent | 00df0354e08078b21aaca369ab5f0efa19b27fe2 (diff) | |
download | Qt-aa8b52654407668100c2ecc10ba553059ad005da.zip Qt-aa8b52654407668100c2ecc10ba553059ad005da.tar.gz Qt-aa8b52654407668100c2ecc10ba553059ad005da.tar.bz2 |
QGLBuffer::bind()/release() should not be const functions.
This is more or less the same as in the
QGLFramebufferObject::bind()/release() case.
Task-number: QTBUG-12319
Reviewed-by: Kim
(cherry picked from commit 3a08c5b1682e211bf664c21850187e2b15e89c23)
-rw-r--r-- | src/opengl/qglbuffer.cpp | 4 | ||||
-rw-r--r-- | src/opengl/qglbuffer.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/opengl/qglbuffer.cpp b/src/opengl/qglbuffer.cpp index d6e0109..5f0aed4 100644 --- a/src/opengl/qglbuffer.cpp +++ b/src/opengl/qglbuffer.cpp @@ -416,7 +416,7 @@ void QGLBuffer::allocate(const void *data, int count) \sa release(), create() */ -bool QGLBuffer::bind() const +bool QGLBuffer::bind() { #ifndef QT_NO_DEBUG if (!isCreated()) @@ -448,7 +448,7 @@ bool QGLBuffer::bind() const \sa bind() */ -void QGLBuffer::release() const +void QGLBuffer::release() { #ifndef QT_NO_DEBUG if (!isCreated()) diff --git a/src/opengl/qglbuffer.h b/src/opengl/qglbuffer.h index a1b45ff..9867f31 100644 --- a/src/opengl/qglbuffer.h +++ b/src/opengl/qglbuffer.h @@ -101,8 +101,8 @@ public: void destroy(); - bool bind() const; - void release() const; + bool bind(); + void release(); static void release(QGLBuffer::Type type); |