diff options
| author | Ray <[email protected]> | 2018-12-20 10:40:28 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-12-20 10:40:28 +0100 |
| commit | 788bb78989415a2890bc1d902bcc957b12860341 (patch) | |
| tree | cbc8271f049732a3f4d35a36eddacdb957bf840d /src | |
| parent | 6ef1e1d9387192a9f6b49095dc77e3d6bfa367b7 (diff) | |
| download | raylib-788bb78989415a2890bc1d902bcc957b12860341.tar.gz raylib-788bb78989415a2890bc1d902bcc957b12860341.zip | |
Some tweaks
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2891,8 +2891,8 @@ int GetShaderLocation(Shader shader, const char *uniformName) #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) location = glGetUniformLocation(shader.id, uniformName); - if (location == -1) TraceLog(LOG_WARNING, "[SHDR ID %i] Shader uniform [%s] COULD NOT BE FOUND", shader.id, uniformName); - else TraceLog(LOG_INFO, "[SHDR ID %i] Shader uniform [%s] set at location: %i", shader.id, uniformName, location); + if (location == -1) TraceLog(LOG_WARNING, "[SHDR ID %i][%s] Shader uniform could not be found", shader.id, uniformName); + else TraceLog(LOG_INFO, "[SHDR ID %i][%s] Shader uniform set at location: %i", shader.id, uniformName, location); #endif return location; } |
