mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:29:01 +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() {
|
void OpenGLDisplayPlugin::updateTextures() {
|
||||||
// FIXME intrduce a GPU wait instead of a CPU/GPU sync point?
|
// FIXME intrduce a GPU wait instead of a CPU/GPU sync point?
|
||||||
|
#if THREADED_PRESENT
|
||||||
if (_sceneTextureEscrow.fetchSignaledAndRelease(_currentSceneTexture)) {
|
if (_sceneTextureEscrow.fetchSignaledAndRelease(_currentSceneTexture)) {
|
||||||
|
#else
|
||||||
|
if (_sceneTextureEscrow.fetchAndReleaseWithGpuWait(_currentSceneTexture)) {
|
||||||
|
#endif
|
||||||
updateFrameData();
|
updateFrameData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue