Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube :

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

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

parent 3f0b099e
......@@ -132,6 +132,10 @@ void GPU::Shader::RecoverActiveUniforms()
std::string name( nameBuffer );
size_t arraySymbolPos = name.find( "[" );
if( arraySymbolPos != std::string::npos )
name = name.substr( 0, arraySymbolPos );
switch( type )
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