Skip to content

Commit

Permalink
Fix MSVC compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jul 19, 2023
1 parent 0259211 commit 740864d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ivis_opengl/gfx_api_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5748,7 +5748,7 @@ bool VkRoot::setDepthPassProperties(size_t _numDepthPasses, size_t _depthBufferR
}

depthPassCount = _numDepthPasses;
depthMapSize = _depthBufferResolution;
depthMapSize = static_cast<uint32_t>(_depthBufferResolution);

createDepthPassImagesAndFBOs(depthBufferFormat);

Expand Down
2 changes: 1 addition & 1 deletion lib/ivis_opengl/piedraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ bool pie_setShadowMapResolution(uint32_t resolution)

uint32_t pie_getShadowMapResolution()
{
return gfx_api::context::get().getDepthPassDimensions(0);
return static_cast<uint32_t>(gfx_api::context::get().getDepthPassDimensions(0));
}

bool pie_setShadowMode(ShadowMode mode)
Expand Down

0 comments on commit 740864d

Please sign in to comment.