Fixed QOpenGLBuffer::map and unmap implementations.

We already have the necessary enablers in QOpenGLExtensions.

Change-Id: I90d763516d8b92c09c878133552200c94a46fbf2
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
This commit is contained in:
Samuel Rødal 2012-05-05 20:03:04 +02:00 committed by Qt by Nokia
parent 79400f83ec
commit f60bf8a18a

View File

@ -523,18 +523,7 @@ void *QOpenGLBuffer::map(QOpenGLBuffer::Access access)
#endif #endif
if (!d->guard || !d->guard->id()) if (!d->guard || !d->guard->id())
return 0; return 0;
#if 0 return d->funcs->glMapBuffer(d->type, access);
if (!glMapBufferARB)
return 0;
return glMapBufferARB(d->type, access);
#endif
Q_UNUSED(access);
static bool warned = false;
if (!warned) {
qWarning("QOpenGLBuffer::map(): pending implementation");
warned = true;
}
return 0;
} }
/*! /*!
@ -559,17 +548,7 @@ bool QOpenGLBuffer::unmap()
#endif #endif
if (!d->guard || !d->guard->id()) if (!d->guard || !d->guard->id())
return false; return false;
#if 0 return d->funcs->glUnmapBuffer(d->type) == GL_TRUE;
if (!glUnmapBufferARB)
return false;
return glUnmapBufferARB(d->type) == GL_TRUE;
#endif
static bool warned = false;
if (!warned) {
qWarning("QOpenGLBuffer::map(): pending implementation");
warned = true;
}
return 0;
} }
QT_END_NAMESPACE QT_END_NAMESPACE