X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=mercenary-reloaded.git;a=blobdiff_plain;f=src%2Flibsdl%2Fopengl.c;h=ae3eaca849373a5ba463ecc502e829b3f99b2862;hp=40cf6bba639f73c7960328325f3fde130061d334;hb=99218ad73b476cad66afa0efb8de9c763108747b;hpb=f9e72953571609089acedec0ce3e275cf63ef008 diff --git a/src/libsdl/opengl.c b/src/libsdl/opengl.c index 40cf6bb..ae3eaca 100644 --- a/src/libsdl/opengl.c +++ b/src/libsdl/opengl.c @@ -21,6 +21,7 @@ #include #include #include +#include "print.h" #include "opengl.h" #include @@ -43,7 +44,7 @@ int init_opengl(int _image_width, int _image_height) ; text_rgb = calloc(texture_size * texture_size * 10, 3); if (!text_rgb) { - fprintf(stderr, "Failed to allocate texture\n"); + print_error("Failed to allocate texture\n"); rc = -ENOMEM; goto error; }