summaryrefslogtreecommitdiffstats
path: root/src/scenegraph/coreapi/renderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenegraph/coreapi/renderer.cpp')
-rw-r--r--src/scenegraph/coreapi/renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scenegraph/coreapi/renderer.cpp b/src/scenegraph/coreapi/renderer.cpp
index 1178b5a..8fa8da3 100644
--- a/src/scenegraph/coreapi/renderer.cpp
+++ b/src/scenegraph/coreapi/renderer.cpp
@@ -151,14 +151,14 @@ void Renderer::setClearColor(const QColor &color)
m_clear_color = color;
}
-void Renderer::setTexture(int unit, const TextureReference *texture)
+void Renderer::setTexture(int unit, const QSGTextureRef &texture)
{
if (unit < 0)
return;
// Select the texture unit and bind the texture.
glActiveTexture(GL_TEXTURE0 + unit);
- if (!texture) {
+ if (texture.isNull()) {
glBindTexture(GL_TEXTURE_2D, 0);
} else {
glBindTexture(GL_TEXTURE_2D, texture->textureId());