diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-07-26 13:06:57 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-07-26 13:06:57 (GMT) |
commit | 3a08c5b1682e211bf664c21850187e2b15e89c23 (patch) | |
tree | 26ef727bbae6ce2c02c52aa6a4115e15b069499b | |
parent | 90642dd2b6b14c39cc6178f1161331895809b342 (diff) | |
download | Qt-3a08c5b1682e211bf664c21850187e2b15e89c23.zip Qt-3a08c5b1682e211bf664c21850187e2b15e89c23.tar.gz Qt-3a08c5b1682e211bf664c21850187e2b15e89c23.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
-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); |