aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz/gears.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-01-03 20:35:53 +1000
committerDavid Walter Seikel2016-01-03 20:35:53 +1000
commit72093df9fdf281ccd581baf5993bdc2ec6957342 (patch)
tree5e071b445f7a8713776df6defb794549d9d16b7f /src/extantz/gears.c
parentRe-enable the web browser I had forgotten disabling. (diff)
downloadSledjHamr-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 'src/extantz/gears.c')
-rw-r--r--src/extantz/gears.c5
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 }