Avoid tracelog about not found uniforms #3003
This commit is contained in:
parent
8f741d894a
commit
9aa71f04f2
1 changed files with 2 additions and 2 deletions
|
@ -3923,8 +3923,8 @@ int rlGetLocationUniform(unsigned int shaderId, const char *uniformName)
|
|||
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
||||
location = glGetUniformLocation(shaderId, uniformName);
|
||||
|
||||
if (location == -1) TRACELOG(RL_LOG_WARNING, "SHADER: [ID %i] Failed to find shader uniform: %s", shaderId, uniformName);
|
||||
else TRACELOG(RL_LOG_INFO, "SHADER: [ID %i] Shader uniform (%s) set at location: %i", shaderId, uniformName, location);
|
||||
//if (location == -1) TRACELOG(RL_LOG_WARNING, "SHADER: [ID %i] Failed to find shader uniform: %s", shaderId, uniformName);
|
||||
//else TRACELOG(RL_LOG_INFO, "SHADER: [ID %i] Shader uniform (%s) set at location: %i", shaderId, uniformName, location);
|
||||
#endif
|
||||
return location;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue