rhi: gl: Skip nice but not essential uniform checks in release
Change-Id: Ic258f128d691a221670d930d2bfe90cda74a4c75 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
848ed9644c
commit
80626a057e
@ -2843,6 +2843,7 @@ void QRhiGles2::bindShaderResources(QRhiGraphicsPipeline *maybeGraphicsPs, QRhiC
|
|||||||
// so this should not cause unaligned reads
|
// so this should not cause unaligned reads
|
||||||
const void *src = bufView + uniform.offset;
|
const void *src = bufView + uniform.offset;
|
||||||
|
|
||||||
|
#ifndef QT_NO_DEBUG
|
||||||
if (uniform.arrayDim > 0
|
if (uniform.arrayDim > 0
|
||||||
&& uniform.type != QShaderDescription::Float
|
&& uniform.type != QShaderDescription::Float
|
||||||
&& uniform.type != QShaderDescription::Vec2
|
&& uniform.type != QShaderDescription::Vec2
|
||||||
@ -2856,6 +2857,7 @@ void QRhiGles2::bindShaderResources(QRhiGraphicsPipeline *maybeGraphicsPs, QRhiC
|
|||||||
"Only the first element will be set.",
|
"Only the first element will be set.",
|
||||||
uniform.binding, uniform.offset, uniform.type);
|
uniform.binding, uniform.offset, uniform.type);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Our input is an std140 layout uniform block. See
|
// Our input is an std140 layout uniform block. See
|
||||||
// "Standard Uniform Block Layout" in section 7.6.2.2 of
|
// "Standard Uniform Block Layout" in section 7.6.2.2 of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user