drawSolidRect raises GL_INVALID_OPERATION intermittently - threading issue

You can try dispatchAsync that executes your function before the next update on the main thread.

1 Like