Commit 14b58a3a authored by Martin Schultz's avatar Martin Schultz

fixed #3 by moving the call to make curront to the top of snapshot

function to prevent the push calls being made without a valid context or
a different context than the pop calls.
parent 118bb540
......@@ -2200,7 +2200,8 @@ void glViewer::slotPropertiesUpdated() {
void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bool _hideCoordsys, int samples) {
int w = 0, h = 0, bak_w = 0, bak_h = 0, left = 0, bottom = 0;
......@@ -2240,7 +2241,6 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
// it will fall back to the maximal supported number of samples
QFramebufferObject fb(w,h,format);
if ( fb.isValid() ){
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