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
whitequark 2016-10-21 20:50:18 +00:00
parent 345c982b3b
commit f619a4b85e
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -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

View File

@ -324,6 +324,8 @@ protected:
cr->paint(); cr->paint();
surface->finish(); surface->finish();
glXSwapBuffers(_xdisplay, _xwindow);
return true; return true;
} }