Commit 3914bb4a by Nicolas Capens Committed by Nicolas Capens

Clear the list of uniforms before recompiling.

Bug 18525426 Change-Id: I10c613b5c989467423f3bc84ed3c7039fa35abea Reviewed-on: https://swiftshader-review.googlesource.com/1504Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 22658244
...@@ -184,10 +184,11 @@ TranslatorASM *Shader::createCompiler(ShShaderType type) ...@@ -184,10 +184,11 @@ TranslatorASM *Shader::createCompiler(ShShaderType type)
void Shader::clear() void Shader::clear()
{ {
delete[] mInfoLog; delete[] mInfoLog;
mInfoLog = NULL; mInfoLog = NULL;
varyings.clear(); varyings.clear();
activeUniforms.clear();
activeAttributes.clear(); activeAttributes.clear();
} }
......
...@@ -184,10 +184,11 @@ TranslatorASM *Shader::createCompiler(ShShaderType type) ...@@ -184,10 +184,11 @@ TranslatorASM *Shader::createCompiler(ShShaderType type)
void Shader::clear() void Shader::clear()
{ {
delete[] mInfoLog; delete[] mInfoLog;
mInfoLog = NULL; mInfoLog = NULL;
varyings.clear(); varyings.clear();
activeUniforms.clear();
activeAttributes.clear(); activeAttributes.clear();
} }
......
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