From b7014aad09a7f5653e2931858a1c148a15f21352 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 6 Aug 2008 11:58:06 +0000 Subject: Adding win32 osmesa / imagemagick support, and cleaning up a bit. --- src/plugin-luaosmesa.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/plugin-luaosmesa.cc') diff --git a/src/plugin-luaosmesa.cc b/src/plugin-luaosmesa.cc index 830c2db..09929b7 100644 --- a/src/plugin-luaosmesa.cc +++ b/src/plugin-luaosmesa.cc @@ -1,3 +1,5 @@ +#include + #include #include #include @@ -28,7 +30,9 @@ class scene_t : public Base { public: std::list scene; String filename, tmp_filename; -};void empty_scene(scene_t scene) { +}; + +void empty_scene(scene_t scene) { while (scene.scene.begin() != scene.scene.end()) { scene.scene.pop_front(); } @@ -68,14 +72,14 @@ void init_OSMesa() { ctx = OSMesaCreateContextExt(OSMESA_BGRA, z, stencil, accum, NULL); if (!ctx) { - printf("OSMesaCreateContextExt() failed!\n"); + Base::printm(M_ERROR, "OSMesaCreateContextExt() failed!\n"); return; } buffer = malloc(2048 * 2048 * 4); if (!buffer) { - printf("Alloc image buffer failed!\n"); + Base::printm(M_ERROR, "Alloc image buffer failed!\n"); return; } -- cgit v1.2.3