From ad8ad200ed9e8c235b50097dfe9b00a61ae2c401 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 12 Sep 2023 19:10:04 +0100 Subject: [PATCH] Fixed warning --- src/vsg/state/ViewDependentState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vsg/state/ViewDependentState.cpp b/src/vsg/state/ViewDependentState.cpp index e26df2c99..6bae0dda2 100644 --- a/src/vsg/state/ViewDependentState.cpp +++ b/src/vsg/state/ViewDependentState.cpp @@ -196,7 +196,7 @@ void ViewDependentState::init(uint32_t maxNumberLights, uint32_t maxViewports, u float* data = shadowMapData->data(shadowMapData->index(0, j, k)); for(uint32_t i = 0; i < shadowMapData->width(); ++i) { - *(data++) = sin(vsg::PI * static_cast(i)/static_cast(shadowMapData->width()-1)); + *(data++) = static_cast(sin(vsg::PI * static_cast(i)/static_cast(shadowMapData->width()-1))); } } }