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:
parent
b5dba292c2
commit
be62ece6c1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user