Compile without QT_DEBUG.

Change-Id: I3dadcdd83f45451d712703601d46adbc1691291b
Reviewed-on: http://codereview.qt.nokia.com/3727
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Morten Sorvig 2011-08-29 11:59:07 +02:00 committed by Samuel Rødal
parent b5dba292c2
commit be62ece6c1
2 changed files with 2 additions and 2 deletions

View File

@ -964,8 +964,8 @@ bool QOpenGLFramebufferObject::release()
if (!current)
return false;
#ifdef QT_DEBUG
Q_D(QOpenGLFramebufferObject);
#ifdef QT_DEBUG
if (current->shareGroup() != d->fbo_guard->group())
qWarning("QOpenGLFramebufferObject::release() called from incompatible context");
#endif

View File

@ -892,8 +892,8 @@ bool QOpenGLShaderProgram::bind()
*/
void QOpenGLShaderProgram::release()
{
#ifndef QT_NO_DEBUG
Q_D(QOpenGLShaderProgram);
#ifndef QT_NO_DEBUG
if (d->programGuard->group() != QOpenGLContextGroup::currentContextGroup())
qWarning("QOpenGLShaderProgram::release: program is not valid in the current context.");
#endif