mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:31:29 +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);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
_renderControl->render();
|
_renderControl->render();
|
||||||
|
// FIXME The web browsers seem to be leaving GL in an error state.
|
||||||
Q_ASSERT(!glGetError());
|
// Need a debug context with sync logging to figure out why.
|
||||||
|
// for now just clear the errors
|
||||||
|
glGetError();
|
||||||
|
// Q_ASSERT(!glGetError());
|
||||||
|
|
||||||
_quickWindow->resetOpenGLState();
|
_quickWindow->resetOpenGLState();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue