mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 08:15:37 +00:00
Fix uninitialized variable warning
This commit is contained in:
parent
d141cec2a8
commit
baffab62ce
@ -198,7 +198,7 @@ void EGLRenderer::renderOverlay(Overlay::OverlayType type)
|
|||||||
float y;
|
float y;
|
||||||
float w;
|
float w;
|
||||||
float h;
|
float h;
|
||||||
} overlayRect;
|
} overlayRect = {};
|
||||||
|
|
||||||
// These overlay positions differ from the other renderers because OpenGL
|
// These overlay positions differ from the other renderers because OpenGL
|
||||||
// places the origin in the lower-left corner instead of the upper-left.
|
// places the origin in the lower-left corner instead of the upper-left.
|
||||||
@ -211,6 +211,8 @@ void EGLRenderer::renderOverlay(Overlay::OverlayType type)
|
|||||||
// Top left
|
// Top left
|
||||||
overlayRect.x = 0;
|
overlayRect.x = 0;
|
||||||
overlayRect.y = m_ViewportHeight - newSurface->h;
|
overlayRect.y = m_ViewportHeight - newSurface->h;
|
||||||
|
} else {
|
||||||
|
SDL_assert(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
overlayRect.w = newSurface->w;
|
overlayRect.w = newSurface->w;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user