diff --git a/libraries/gpu/src/gpu/GLBackendInput.cpp b/libraries/gpu/src/gpu/GLBackendInput.cpp index 0176d9ba0c..6a4a092c64 100755 --- a/libraries/gpu/src/gpu/GLBackendInput.cpp +++ b/libraries/gpu/src/gpu/GLBackendInput.cpp @@ -125,7 +125,7 @@ void GLBackend::updateInput() { } // Manage Activation what was and what is expected now - for (int i = 0; i < newActivation.size(); i++) { + for (size_t i = 0; i < newActivation.size(); i++) { bool newState = newActivation[i]; if (newState != _input._attributeActivation[i]) { if (newState) { diff --git a/tests/gpu-test/src/main.cpp b/tests/gpu-test/src/main.cpp index 3c6da82b68..97fa728c47 100644 --- a/tests/gpu-test/src/main.cpp +++ b/tests/gpu-test/src/main.cpp @@ -192,8 +192,6 @@ public: } void draw() { - static auto startTime = usecTimestampNow(); - // Attempting to draw before we're visible and have a valid size will // produce GL errors. if (!isVisible() || _size.width() <= 0 || _size.height() <= 0) { @@ -207,7 +205,7 @@ public: batch.setViewportTransform({ 0, 0, _size.width() * devicePixelRatio(), _size.height() * devicePixelRatio() }); batch.setProjectionTransform(_projectionMatrix); - double t = _time.elapsed() * 1e-3; + float t = _time.elapsed() * 1e-3f; glm::vec3 unitscale { 1.0f }; glm::vec3 up { 0.0f, 1.0f, 0.0f }; @@ -356,9 +354,9 @@ public: static auto startUsecs = usecTimestampNow(); float seconds = getSeconds(startUsecs); - seconds /= 4.0; + seconds /= 4.0f; int shapeIndex = ((int)seconds) % TYPE_COUNT; - bool wire = seconds - floor(seconds) > 0.5f; + bool wire = (seconds - floor(seconds) > 0.5f); batch.setModelTransform(Transform()); batch._glColor4f(0.8f, 0.25f, 0.25f, 1.0f);