Commit 7807046d authored by Frédéric Larue's avatar Frédéric Larue

Correct name management for uniforms declared as arrays in the Shader class.

parent 3f0b099e
...@@ -132,6 +132,10 @@ void GPU::Shader::RecoverActiveUniforms() ...@@ -132,6 +132,10 @@ void GPU::Shader::RecoverActiveUniforms()
std::string name( nameBuffer ); std::string name( nameBuffer );
size_t arraySymbolPos = name.find( "[" );
if( arraySymbolPos != std::string::npos )
name = name.substr( 0, arraySymbolPos );
switch( type ) switch( type )
{ {
case GL_SAMPLER_1D: case GL_SAMPLER_1D:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment