egl cursor: The sampler is a uniform not an attribute

Change-Id: Ibae21653040f1d8dff2d2c0b7c1b2812d9e14551
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
This commit is contained in:
Laszlo Agocs 2014-05-16 17:17:57 +02:00 committed by The Qt Project
parent 43d4fecde5
commit af16f88e97

View File

@ -171,7 +171,7 @@ void QEGLPlatformCursor::createShaderPrograms()
m_vertexCoordEntry = m_program->attributeLocation("vertexCoordEntry"); m_vertexCoordEntry = m_program->attributeLocation("vertexCoordEntry");
m_textureCoordEntry = m_program->attributeLocation("textureCoordEntry"); m_textureCoordEntry = m_program->attributeLocation("textureCoordEntry");
m_textureEntry = m_program->attributeLocation("texture"); m_textureEntry = m_program->uniformLocation("texture");
} }
void QEGLPlatformCursor::createCursorTexture(uint *texture, const QImage &image) void QEGLPlatformCursor::createCursorTexture(uint *texture, const QImage &image)