From 80626a057e164d2fdc7fdb121c3c7a5b58d29cc2 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 28 Sep 2020 15:53:53 +0200 Subject: rhi: gl: Skip nice but not essential uniform checks in release Change-Id: Ic258f128d691a221670d930d2bfe90cda74a4c75 Reviewed-by: Andy Nichols --- src/gui/rhi/qrhigles2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/rhi/qrhigles2.cpp') diff --git a/src/gui/rhi/qrhigles2.cpp b/src/gui/rhi/qrhigles2.cpp index 95f4e02976..372bf39c3e 100644 --- a/src/gui/rhi/qrhigles2.cpp +++ b/src/gui/rhi/qrhigles2.cpp @@ -2843,6 +2843,7 @@ void QRhiGles2::bindShaderResources(QRhiGraphicsPipeline *maybeGraphicsPs, QRhiC // so this should not cause unaligned reads const void *src = bufView + uniform.offset; +#ifndef QT_NO_DEBUG if (uniform.arrayDim > 0 && uniform.type != QShaderDescription::Float && uniform.type != QShaderDescription::Vec2 @@ -2856,6 +2857,7 @@ void QRhiGles2::bindShaderResources(QRhiGraphicsPipeline *maybeGraphicsPs, QRhiC "Only the first element will be set.", uniform.binding, uniform.offset, uniform.type); } +#endif // Our input is an std140 layout uniform block. See // "Standard Uniform Block Layout" in section 7.6.2.2 of -- cgit v1.2.3