From a55179101e22d0866a0ce90a8df180352f241c3a Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Wed, 18 May 2016 15:11:29 -0700 Subject: [PATCH] Fix invalidFormat check --- libraries/gpu/src/gpu/GLBackendInput.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/gpu/src/gpu/GLBackendInput.cpp b/libraries/gpu/src/gpu/GLBackendInput.cpp index 4f4af31da2..e8927d0d61 100755 --- a/libraries/gpu/src/gpu/GLBackendInput.cpp +++ b/libraries/gpu/src/gpu/GLBackendInput.cpp @@ -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; } } }