summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-05 10:36:20 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-05 09:43:48 +0000
commita6910ee41daaf1522f57bbc7b405c0887ea90f7a (patch)
treeb50717ab6fd25f9d555969acc9865434613463e3
parentc18f56700f70afb80a4d8b9f767a2edd7ac0841e (diff)
Avoid warnings about missing unsized formats with GLES2
If the format is already the correct unsized, GLES2 compatible format, then there is no need to warn. Change-Id: I1a76436a2c360e2ec5f182b3e3e3b3dcfbd6118d Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
-rw-r--r--src/render/backend/rendertexture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/backend/rendertexture.cpp b/src/render/backend/rendertexture.cpp
index 16348161a..f54945801 100644
--- a/src/render/backend/rendertexture.cpp
+++ b/src/render/backend/rendertexture.cpp
@@ -239,9 +239,11 @@ QOpenGLTexture *RenderTexture::buildGLTexture()
if (ctx->isOpenGLES() && ctx->format().majorVersion() < 3) {
switch (m_format) {
case QOpenGLTexture::RGBA8_UNorm:
+ case QOpenGLTexture::RGBAFormat:
format = QAbstractTextureProvider::RGBAFormat;
break;
case QOpenGLTexture::RGB8_UNorm:
+ case QOpenGLTexture::RGBFormat:
format = QAbstractTextureProvider::RGBFormat;
break;
case QOpenGLTexture::DepthFormat: