GTK: add a no-op glXSwapBuffers call for apitrace.
Apitrace uses swapping buffers to determine frame boundaries; before this commit, everything solvespace renders gets put into a single frame. Since we don't use double-buffered rendering, the call does nothing (and is legal to perform), but apitrace output becomes readable.pull/97/head
parent
345c982b3b
commit
f619a4b85e
|
@ -2,7 +2,7 @@
|
||||||
/build*/
|
/build*/
|
||||||
/test/**/*.diff.*
|
/test/**/*.diff.*
|
||||||
/test/**/*.curr.*
|
/test/**/*.curr.*
|
||||||
*.trace # OpenGL apitrace files
|
*.trace
|
||||||
/debian/tmp/
|
/debian/tmp/
|
||||||
/debian/*.log
|
/debian/*.log
|
||||||
/debian/*.substvars
|
/debian/*.substvars
|
||||||
|
|
|
@ -324,6 +324,8 @@ protected:
|
||||||
cr->paint();
|
cr->paint();
|
||||||
surface->finish();
|
surface->finish();
|
||||||
|
|
||||||
|
glXSwapBuffers(_xdisplay, _xwindow);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue