mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-30 18:59:18 -05:00
Avoid shader attribute not found log
This commit is contained in:
@ -3936,8 +3936,8 @@ int rlGetLocationAttrib(unsigned int shaderId, const char *attribName)
|
|||||||
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
||||||
location = glGetAttribLocation(shaderId, attribName);
|
location = glGetAttribLocation(shaderId, attribName);
|
||||||
|
|
||||||
if (location == -1) TRACELOG(RL_LOG_WARNING, "SHADER: [ID %i] Failed to find shader attribute: %s", shaderId, attribName);
|
//if (location == -1) TRACELOG(RL_LOG_WARNING, "SHADER: [ID %i] Failed to find shader attribute: %s", shaderId, attribName);
|
||||||
else TRACELOG(RL_LOG_INFO, "SHADER: [ID %i] Shader attribute (%s) set at location: %i", shaderId, attribName, location);
|
//else TRACELOG(RL_LOG_INFO, "SHADER: [ID %i] Shader attribute (%s) set at location: %i", shaderId, attribName, location);
|
||||||
#endif
|
#endif
|
||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user