From e21545a9c2e8fd671c449bf9a67368161387308a Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 23 May 2018 15:34:55 +0200 Subject: Check for GL_EXT_texture_norm16 on GLES Since GL_R16 is not available otherwise. Fall back to GL_R8 then which leads to worse looking results. Change-Id: I44adeac1940e0c085947547d2ccbc36ef5c9e75a Reviewed-by: Christian Stromme --- src/runtime/q3dsgraphicslimits_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/q3dsgraphicslimits_p.h') diff --git a/src/runtime/q3dsgraphicslimits_p.h b/src/runtime/q3dsgraphicslimits_p.h index 2e624cf..e7b8cfe 100644 --- a/src/runtime/q3dsgraphicslimits_p.h +++ b/src/runtime/q3dsgraphicslimits_p.h @@ -55,6 +55,7 @@ struct Q3DSGraphicsLimits { bool shaderTextureLodSupported = true; bool shaderUniformBufferSupported = true; bool packedDepthStencilBufferSupported = true; + bool norm16TexturesSupported = true; QByteArray renderer; QByteArray vendor; QByteArray version; -- cgit v1.2.3 From 9fde01d51d1be7bd630a85f763f0e512b4b2d9d5 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 23 May 2018 16:14:02 +0200 Subject: Make sure GL feature checks are not accidentally left true Change-Id: Ibd4d8751d82690f2856b651203b48b44e714cfa8 Reviewed-by: Christian Stromme --- src/runtime/q3dsgraphicslimits_p.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/runtime/q3dsgraphicslimits_p.h') diff --git a/src/runtime/q3dsgraphicslimits_p.h b/src/runtime/q3dsgraphicslimits_p.h index e7b8cfe..6314c7b 100644 --- a/src/runtime/q3dsgraphicslimits_p.h +++ b/src/runtime/q3dsgraphicslimits_p.h @@ -52,10 +52,10 @@ struct Q3DSGraphicsLimits { bool versionedContextFailed = false; int maxDrawBuffers = 4; bool multisampleTextureSupported = false; - bool shaderTextureLodSupported = true; - bool shaderUniformBufferSupported = true; - bool packedDepthStencilBufferSupported = true; - bool norm16TexturesSupported = true; + bool shaderTextureLodSupported = false; + bool shaderUniformBufferSupported = false; + bool packedDepthStencilBufferSupported = false; + bool norm16TexturesSupported = false; QByteArray renderer; QByteArray vendor; QByteArray version; -- cgit v1.2.3