mirror of
https://github.com/overte-org/overte.git
synced 2025-07-22 23:54:02 +02:00
Don't crash on GL error in present thread
This commit is contained in:
parent
c71a20b2f0
commit
aecf582593
1 changed files with 6 additions and 2 deletions
|
@ -351,8 +351,12 @@ float OpenGLDisplayPlugin::presentRate() {
|
|||
}
|
||||
|
||||
void OpenGLDisplayPlugin::drawUnitQuad() {
|
||||
_program->Bind();
|
||||
_plane->Draw();
|
||||
try {
|
||||
_program->Bind();
|
||||
_plane->Draw();
|
||||
} catch (const oglplus::Error& error) {
|
||||
qWarning() << "The present thread encountered an error writing the scene texture to the output: " << error.what();
|
||||
}
|
||||
}
|
||||
|
||||
void OpenGLDisplayPlugin::enableVsync(bool enable) {
|
||||
|
|
Loading…
Reference in a new issue