OpenGLDisplayPlugin: For non-threaded present use fetchAndReleasewithGpuWait

This commit is contained in:
Anthony J. Thibault 2016-03-23 17:13:29 -07:00
parent cec6e7dd8d
commit 73725106f0

View file

@ -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();
}