File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Sources/Overload/OvRendering/src/OvRendering/Core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ void OvRendering::Core::ABaseRenderer::Blit(
131
131
{
132
132
ZoneScoped;
133
133
134
- auto [srcWidth, srcHeight] = p_src.GetSize ();
134
+ const auto [srcWidth, srcHeight] = p_src.GetSize ();
135
135
136
136
if (OvRendering::Settings::IsFlagSet (OvRendering::Settings::EBlitFlags::RESIZE_DST_TO_MATCH_SRC, p_flags))
137
137
{
@@ -168,7 +168,8 @@ void OvRendering::Core::ABaseRenderer::Blit(
168
168
169
169
if (OvRendering::Settings::IsFlagSet (OvRendering::Settings::EBlitFlags::UPDATE_VIEWPORT_SIZE, p_flags))
170
170
{
171
- SetViewport (0 , 0 , srcWidth, srcHeight);
171
+ const auto [dstWidth, dstHeight] = p_dst.GetSize ();
172
+ SetViewport (0 , 0 , dstWidth, dstHeight);
172
173
}
173
174
174
175
DrawEntity (p_pso, blit);
You can’t perform that action at this time.
0 commit comments