Skip to content

Commit

Permalink
Fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 12, 2023
1 parent 13a40ff commit ad8ad20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vsg/state/ViewDependentState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>(i)/static_cast<double>(shadowMapData->width()-1));
*(data++) = static_cast<float>(sin(vsg::PI * static_cast<double>(i)/static_cast<double>(shadowMapData->width()-1)));
}
}
}
Expand Down

0 comments on commit ad8ad20

Please sign in to comment.