![]() Before this commit, trying to export image on *nix platforms yielded a black rectangle, since since there is nowhere to render to when we're not in a GUI toolkit draw callback. On Windows, nothing changes: we do a repaint without the toolbar, glReadPixels, export. On *nix, we create another offscreen rendering context, render into it, then destroy it. As a bonus this avoids some minor flickering that would happen if we reused the regular rendering path. |
||
---|---|---|
.. | ||
gloffscreen.cpp | ||
gloffscreen.h | ||
solvespace-16x16.png | ||
solvespace-24x24.png | ||
solvespace-32x32.png | ||
solvespace-48x48.png | ||
solvespace.desktop | ||
unixutil.cpp |