Commit 556f5c6b authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

ENH: Check for recursive end render callbacks.

parent f3e770e4
......@@ -53,6 +53,14 @@ GLfloat laplacian[3][3] = {
static void ImageCallback(vtkObject *__renwin, unsigned long, void *, void *)
{
static int inImageCallback = 0;
if (inImageCallback)
{
cout << "*********ImageCallback called recursively?" << endl;
return;
}
inImageCallback = 1;
cout << "In ImageCallback" << endl;
vtkRenderWindow *renwin = static_cast<vtkRenderWindow *>(__renwin);
......@@ -74,6 +82,8 @@ static void ImageCallback(vtkObject *__renwin, unsigned long, void *, void *)
renwin->SwapBuffersOn();
renwin->Frame();
renwin->SwapBuffersOff();
inImageCallback = 0;
}
int LoadOpenGLExtension(int argc, char *argv[])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment