From 3a40fd886f8062a39258e199dd565a7538747f15 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Wed, 22 Mar 2017 18:11:20 -0700 Subject: [PATCH] Fix comparison between GL stamps and GPU stamps --- libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp b/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp index 84806d82c3..8dbef09f06 100644 --- a/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp @@ -53,12 +53,12 @@ GLTexture* GL41Backend::syncGPUObject(const TexturePointer& texturePointer) { // FIXME internalize to GL41Texture 'sync' function if (object->isOutdated()) { object->withPreservedTexture([&] { - if (object->_contentStamp < texture.getDataStamp()) { + if (object->_contentStamp <= texture.getDataStamp()) { // FIXME implement synchronous texture transfer here object->syncContent(); } - if (object->_samplerStamp < texture.getSamplerStamp()) { + if (object->_samplerStamp <= texture.getSamplerStamp()) { object->syncSampler(); } });