Skip to content

Commit 8868983

Browse files
committed
Fix wrong assert about material uniforms
Spotted by @VReaperV
1 parent a570f47 commit 8868983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/gl_shader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,7 @@ void GLShader::PostProcessUniforms() {
21392139
auto iterNext = FindUniformForOffset( uniformQueue, std140Size );
21402140
if ( iterNext == uniformQueue.end() ) {
21412141
// add 1 unit of padding
2142-
ASSERT( !( *iterNext )->_components ); // array WriteToBuffer impls don't handle padding correctly
2142+
ASSERT( !_materialSystemUniforms.back()->_components); // array WriteToBuffer impls don't handle padding correctly
21432143
++std140Size;
21442144
++_materialSystemUniforms.back()->_std430Size;
21452145
} else {

0 commit comments

Comments
 (0)