diff options
author | David Walter Seikel | 2016-01-03 20:35:53 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-01-03 20:35:53 +1000 |
commit | 72093df9fdf281ccd581baf5993bdc2ec6957342 (patch) | |
tree | 5e071b445f7a8713776df6defb794549d9d16b7f /src/extantz/gears.c | |
parent | Re-enable the web browser I had forgotten disabling. (diff) | |
download | SledjHamr-72093df9fdf281ccd581baf5993bdc2ec6957342.zip SledjHamr-72093df9fdf281ccd581baf5993bdc2ec6957342.tar.gz SledjHamr-72093df9fdf281ccd581baf5993bdc2ec6957342.tar.bz2 SledjHamr-72093df9fdf281ccd581baf5993bdc2ec6957342.tar.xz |
Clean up logging, removing most of the printf's.
Diffstat (limited to '')
-rw-r--r-- | src/extantz/gears.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/extantz/gears.c b/src/extantz/gears.c index 68f817e..9998357 100644 --- a/src/extantz/gears.c +++ b/src/extantz/gears.c | |||
@@ -279,8 +279,7 @@ static GLuint load_shader(GLData *gld, GLenum type, const char *shader_src) | |||
279 | if (info) | 279 | if (info) |
280 | { | 280 | { |
281 | gl->glGetShaderInfoLog(shader, len, NULL, info); | 281 | gl->glGetShaderInfoLog(shader, len, NULL, info); |
282 | printf("Error compiling shader:\n" | 282 | PE("Error compiling shader: %s", info); |
283 | "%s\n", info); | ||
284 | free(info); | 283 | free(info); |
285 | } | 284 | } |
286 | } | 285 | } |
@@ -332,7 +331,7 @@ void gears_init(GLData *gld) | |||
332 | if (info) | 331 | if (info) |
333 | { | 332 | { |
334 | gld->glApi->glGetProgramInfoLog(gld->program, len, NULL, info); | 333 | gld->glApi->glGetProgramInfoLog(gld->program, len, NULL, info); |
335 | printf("Error linking program:\n%s\n", info); | 334 | PE("Error linking program: %s", info); |
336 | free(info); | 335 | free(info); |
337 | } | 336 | } |
338 | } | 337 | } |