# HG changeset patch # User John Tsiombikas # Date 1284170480 -3600 # Node ID 14c8ebe8f1222348489d5b24eb4f260dff86b3f1 # Parent df239a52a091013dbe73992467bcf8243690002b# Parent e3b4457dc4d2b536b1a99769af5ab8571bbf1d23 merged diff -r df239a52a091 -r 14c8ebe8f122 src/clray.cc --- a/src/clray.cc Sat Sep 11 03:00:21 2010 +0100 +++ b/src/clray.cc Sat Sep 11 03:01:20 2010 +0100 @@ -231,6 +231,11 @@ } glutSwapBuffers(); + + /* We need to make sure OpenGL has finished with the texture + * before allowing the OpenCL kernel to run again. + */ + glFinish(); } void reshape(int x, int y)