aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/designer/designersupport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/designer/designersupport.cpp')
-rw-r--r--src/quick/designer/designersupport.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/designer/designersupport.cpp b/src/quick/designer/designersupport.cpp
index e0b4bd41e5..99dcf2ca71 100644
--- a/src/quick/designer/designersupport.cpp
+++ b/src/quick/designer/designersupport.cpp
@@ -94,7 +94,10 @@ void DesignerSupport::refFromEffectItem(QQuickItem *referencedItem, bool hide)
texture->setSize(referencedItem->boundingRect().size().toSize());
texture->setRecursive(true);
#ifndef QT_OPENGL_ES
- texture->setFormat(GL_RGBA8);
+ if (QOpenGLContext::openGLModuleType() == QOpenGLContext::DesktopGL)
+ texture->setFormat(GL_RGBA8);
+ else
+ texture->setFormat(GL_RGBA);
#else
texture->setFormat(GL_RGBA);
#endif