summaryrefslogtreecommitdiff
path: root/src/plugin-luaosmesa.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin-luaosmesa.cc')
-rw-r--r--src/plugin-luaosmesa.cc10
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;
}