mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 09:25:12 +02:00
Fix invalidFormat check
This commit is contained in:
parent
ca364c2227
commit
a55179101e
1 changed files with 5 additions and 2 deletions
|
@ -37,11 +37,14 @@ void GLBackend::do_setInputFormat(Batch& batch, size_t paramOffset) {
|
|||
if(GLBackend::syncGPUObject(*format)) {
|
||||
if (format != _input._format) {
|
||||
_input._format = format;
|
||||
_input._invalidFormat = true;
|
||||
if (format) {
|
||||
_input._formatKey = format->getKey();
|
||||
if (_input._formatKey != format->getKey()) {
|
||||
_input._formatKey = format->getKey();
|
||||
_input._invalidFormat = true;
|
||||
}
|
||||
} else {
|
||||
_input._formatKey.clear();
|
||||
_input._invalidFormat = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue