mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 23:17:10 +02:00
OpenGLDisplayPlugin: For non-threaded present use fetchAndReleasewithGpuWait
This commit is contained in:
parent
cec6e7dd8d
commit
73725106f0
1 changed files with 4 additions and 0 deletions
|
@ -404,7 +404,11 @@ void OpenGLDisplayPlugin::submitOverlayTexture(const gpu::TexturePointer& overla
|
|||
|
||||
void OpenGLDisplayPlugin::updateTextures() {
|
||||
// FIXME intrduce a GPU wait instead of a CPU/GPU sync point?
|
||||
#if THREADED_PRESENT
|
||||
if (_sceneTextureEscrow.fetchSignaledAndRelease(_currentSceneTexture)) {
|
||||
#else
|
||||
if (_sceneTextureEscrow.fetchAndReleaseWithGpuWait(_currentSceneTexture)) {
|
||||
#endif
|
||||
updateFrameData();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue