clray
changeset 57:14c8ebe8f122
merged
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 11 Sep 2010 03:01:20 +0100 |
parents | df239a52a091 e3b4457dc4d2 |
children | 3d13924b22e6 |
files | src/clray.cc |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/src/clray.cc Sat Sep 11 03:00:21 2010 +0100 1.2 +++ b/src/clray.cc Sat Sep 11 03:01:20 2010 +0100 1.3 @@ -231,6 +231,11 @@ 1.4 } 1.5 1.6 glutSwapBuffers(); 1.7 + 1.8 + /* We need to make sure OpenGL has finished with the texture 1.9 + * before allowing the OpenCL kernel to run again. 1.10 + */ 1.11 + glFinish(); 1.12 } 1.13 1.14 void reshape(int x, int y)