mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +02:00
Fix comparison between GL stamps and GPU stamps
This commit is contained in:
parent
4868a1618a
commit
3a40fd886f
1 changed files with 2 additions and 2 deletions
|
@ -53,12 +53,12 @@ GLTexture* GL41Backend::syncGPUObject(const TexturePointer& texturePointer) {
|
||||||
// FIXME internalize to GL41Texture 'sync' function
|
// FIXME internalize to GL41Texture 'sync' function
|
||||||
if (object->isOutdated()) {
|
if (object->isOutdated()) {
|
||||||
object->withPreservedTexture([&] {
|
object->withPreservedTexture([&] {
|
||||||
if (object->_contentStamp < texture.getDataStamp()) {
|
if (object->_contentStamp <= texture.getDataStamp()) {
|
||||||
// FIXME implement synchronous texture transfer here
|
// FIXME implement synchronous texture transfer here
|
||||||
object->syncContent();
|
object->syncContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (object->_samplerStamp < texture.getSamplerStamp()) {
|
if (object->_samplerStamp <= texture.getSamplerStamp()) {
|
||||||
object->syncSampler();
|
object->syncSampler();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue