mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
removed VSync support in legacy GL, it produces crashes in Windows and MacOSX
This commit is contained in:
parent
5fbc8f3b9e
commit
d310289b21
@ -238,10 +238,10 @@ YACReaderFlowGL::YACReaderFlowGL(QWidget *parent,struct Preset p)
|
|||||||
|
|
||||||
loaderThread->start();*/
|
loaderThread->start();*/
|
||||||
|
|
||||||
QGLFormat f = format();
|
/*QGLFormat f = format();
|
||||||
f.setVersion(2, 1);
|
f.setVersion(2, 1);
|
||||||
f.setSwapInterval(0);
|
f.setSwapInterval(0);
|
||||||
setFormat(f);
|
setFormat(f);*/
|
||||||
|
|
||||||
timerId = startTimer(updateInterval);
|
timerId = startTimer(updateInterval);
|
||||||
|
|
||||||
@ -938,26 +938,25 @@ void YACReaderFlowGL::setPerformance(Performance performance)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void YACReaderFlowGL::useVSync(bool b)
|
void YACReaderFlowGL::useVSync(bool b)
|
||||||
{
|
{/*if(bUseVSync != b)
|
||||||
if(bUseVSync != b)
|
|
||||||
{
|
{
|
||||||
bUseVSync = b;
|
bUseVSync = b;
|
||||||
if(b)
|
if(b)
|
||||||
{
|
{
|
||||||
QGLFormat f = format();
|
QGLFormat f = format();
|
||||||
f.setVersion(2, 1);
|
//f.setVersion(2, 1);
|
||||||
f.setSwapInterval(1);
|
f.setSwapInterval(1);
|
||||||
setFormat(f);
|
setFormat(f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QGLFormat f = format();
|
QGLFormat f = format();
|
||||||
f.setVersion(2, 1);
|
//f.setVersion(2, 1);
|
||||||
f.setSwapInterval(0);
|
f.setSwapInterval(0);
|
||||||
setFormat(f);
|
setFormat(f);
|
||||||
}
|
}
|
||||||
reset();
|
reset();
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
void YACReaderFlowGL::setShowMarks(bool value)
|
void YACReaderFlowGL::setShowMarks(bool value)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user