diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-28 15:53:53 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-29 21:24:45 +0200 |
commit | 80626a057e164d2fdc7fdb121c3c7a5b58d29cc2 (patch) | |
tree | 20f0d15d3d910775f374b7c708dd12fd33b4bb6e /src/gui/rhi/qrhigles2.cpp | |
parent | 848ed9644c5ddd4b761f7b5184658b6131027e7a (diff) |
rhi: gl: Skip nice but not essential uniform checks in release
Change-Id: Ic258f128d691a221670d930d2bfe90cda74a4c75
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhigles2.cpp')
-rw-r--r-- | src/gui/rhi/qrhigles2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |