mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-17 19:20:46 +00:00
Another GL sync test
This commit is contained in:
parent
8ed0015279
commit
19723b3858
@ -811,6 +811,12 @@ void gGraphWindow::initializeGL()
|
|||||||
m_scrX=width();
|
m_scrX=width();
|
||||||
m_scrY=height();
|
m_scrY=height();
|
||||||
|
|
||||||
|
QGLFormat glFormat(QGL::SampleBuffers);
|
||||||
|
glFormat.setAlpha(true);
|
||||||
|
glFormat.setDirectRendering(true);
|
||||||
|
glFormat.setSwapInterval(1);
|
||||||
|
setFormat(glFormat);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool first_draw_event=true;
|
bool first_draw_event=true;
|
||||||
|
Loading…
Reference in New Issue
Block a user