summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSvenn-Arne Dragly <s@dragly.com>2018-11-08 21:16:17 +0100
committerAndy Nichols <andy.nichols@qt.io>2018-11-09 09:03:50 +0000
commit8782c75fc9a977b17a02badabb43f2850de4d588 (patch)
treeab1ce55f564194c725e923b836a22715018ef298
parentc390ab0635a1889ec7867665b7818784e4536886 (diff)
Dragon: Don't warn when disabling seamless cube maps on ES2
There is no reason to warn about the missing feature if the user is not trying to enable it. Change-Id: I2b9b410c7c738e5589f03938489bc79b9f972bfe Reviewed-by: Andy Nichols <andy.nichols@qt.io>
-rw-r--r--src/runtime/dragon/graphicshelpers/dragongraphicshelperes2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/dragon/graphicshelpers/dragongraphicshelperes2.cpp b/src/runtime/dragon/graphicshelpers/dragongraphicshelperes2.cpp
index c1fc345..1409b3c 100644
--- a/src/runtime/dragon/graphicshelpers/dragongraphicshelperes2.cpp
+++ b/src/runtime/dragon/graphicshelpers/dragongraphicshelperes2.cpp
@@ -620,8 +620,8 @@ void GraphicsHelperES2::disablei(GLenum cap, GLuint index)
void GraphicsHelperES2::setSeamlessCubemap(bool enable)
{
- Q_UNUSED(enable);
- qWarning() << "GL_TEXTURE_CUBE_MAP_SEAMLESS not supported by OpenGL ES 2.0";
+ if (enable)
+ qWarning() << "GL_TEXTURE_CUBE_MAP_SEAMLESS not supported by OpenGL ES 2.0";
}
QSize GraphicsHelperES2::getRenderBufferDimensions(GLuint renderBufferId)