diff options
author | pixel <pixel> | 2008-08-06 11:58:06 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-08-06 11:58:06 +0000 |
commit | b7014aad09a7f5653e2931858a1c148a15f21352 (patch) | |
tree | f5d5b27ca0fa8128deed1ac8a4d3a858f0c25eb7 /src/plugin-luaosmesa.cc | |
parent | f3c88af7e5db334fbce6cc4399e6b7e41dc33812 (diff) |
Adding win32 osmesa / imagemagick support, and cleaning up a bit.
Diffstat (limited to 'src/plugin-luaosmesa.cc')
-rw-r--r-- | src/plugin-luaosmesa.cc | 10 |
1 files changed, 7 insertions, 3 deletions
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 <pthread.h> + #include <GL/gl.h> #include <GL/glu.h> #include <GL/osmesa.h> @@ -28,7 +30,9 @@ class scene_t : public Base { public: std::list<Magick::Image> 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; } |