From d310289b21810ae0ca4915f5ec9054bbcf4147f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 24 May 2015 19:30:06 +0200 Subject: [PATCH] removed VSync support in legacy GL, it produces crashes in Windows and MacOSX --- common/gl_legacy/yacreader_flow_gl.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/common/gl_legacy/yacreader_flow_gl.cpp b/common/gl_legacy/yacreader_flow_gl.cpp index 0d3e7c1c..1aa27beb 100644 --- a/common/gl_legacy/yacreader_flow_gl.cpp +++ b/common/gl_legacy/yacreader_flow_gl.cpp @@ -238,10 +238,10 @@ YACReaderFlowGL::YACReaderFlowGL(QWidget *parent,struct Preset p) loaderThread->start();*/ - QGLFormat f = format(); + /*QGLFormat f = format(); f.setVersion(2, 1); - f.setSwapInterval(0); - setFormat(f); + f.setSwapInterval(0); + setFormat(f);*/ timerId = startTimer(updateInterval); @@ -938,26 +938,25 @@ void YACReaderFlowGL::setPerformance(Performance performance) } void YACReaderFlowGL::useVSync(bool b) -{ - if(bUseVSync != b) +{/*if(bUseVSync != b) { bUseVSync = b; if(b) { QGLFormat f = format(); - f.setVersion(2, 1); + //f.setVersion(2, 1); f.setSwapInterval(1); setFormat(f); } else { QGLFormat f = format(); - f.setVersion(2, 1); + //f.setVersion(2, 1); f.setSwapInterval(0); setFormat(f); } - reset(); - } + reset(); + }*/ } void YACReaderFlowGL::setShowMarks(bool value) {