in the texture cache
Change-Id: Ib9bb136fa451c571fce2adbee29998b3f3593b31
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, const QPixmap &pixmap)
{
+ if (pixmap.isNull())
+ return 0;
QMutexLocker locker(&m_mutex);
qint64 key = pixmap.cacheKey();
GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, const QImage &image)
{
+ if (image.isNull())
+ return 0;
QMutexLocker locker(&m_mutex);
qint64 key = image.cacheKey();