summaryrefslogtreecommitdiffstats
path: root/src/quick3d/quick3dscene2d/items/scene2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick3d/quick3dscene2d/items/scene2d.cpp')
-rw-r--r--src/quick3d/quick3dscene2d/items/scene2d.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quick3d/quick3dscene2d/items/scene2d.cpp b/src/quick3d/quick3dscene2d/items/scene2d.cpp
index 2b0a6580d..4e2dbcd18 100644
--- a/src/quick3d/quick3dscene2d/items/scene2d.cpp
+++ b/src/quick3d/quick3dscene2d/items/scene2d.cpp
@@ -244,7 +244,7 @@ void Scene2D::initializeRender()
m_context->makeCurrent(m_sharedObject->m_surface);
m_sharedObject->m_renderControl->initialize(m_context);
-#ifdef QT_OPENGL_ES_2_ANGLE
+#if QT_CONFIG(angle)
m_usingAngle = false;
if (m_context->isOpenGLES()) {
const char *versionStr = reinterpret_cast<const char *>(
@@ -309,7 +309,7 @@ void Scene2D::render()
const Qt3DRender::Render::Attachment *attachmentData = nullptr;
QMutex *textureLock = nullptr;
-#ifdef QT_OPENGL_ES_2_ANGLE
+#if QT_CONFIG(angle)
QScopedPointer<SurfaceLocker> surfaceLocker;
if (m_usingAngle)
surfaceLocker.reset(new SurfaceLocker(m_sharedObject->m_surface));
@@ -329,7 +329,7 @@ void Scene2D::render()
new Scene2DEvent(Scene2DEvent::Render));
return;
}
-#ifdef QT_OPENGL_ES_2_ANGLE
+#if QT_CONFIG(angle)
if (m_usingAngle == false)
textureLock->lock();
#else
@@ -382,7 +382,7 @@ void Scene2D::render()
m_context->functions()->glFlush();
if (texture->isAutoMipMapGenerationEnabled())
texture->generateMipMaps();
-#ifdef QT_OPENGL_ES_2_ANGLE
+#if QT_CONFIG(angle)
if (m_usingAngle == false)
textureLock->unlock();
#else