mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 01:04:06 +02:00
Clearing a GL error from Qt internals that triggers an assert
This commit is contained in:
parent
d2a8681139
commit
fbee3c1782
1 changed files with 5 additions and 2 deletions
|
@ -254,8 +254,11 @@ void OffscreenUi::updateQuick() {
|
|||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
_renderControl->render();
|
||||
|
||||
Q_ASSERT(!glGetError());
|
||||
// FIXME The web browsers seem to be leaving GL in an error state.
|
||||
// Need a debug context with sync logging to figure out why.
|
||||
// for now just clear the errors
|
||||
glGetError();
|
||||
// Q_ASSERT(!glGetError());
|
||||
|
||||
_quickWindow->resetOpenGLState();
|
||||
|
||||
|
|
Loading…
Reference in a new issue