mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +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 w;
|
||||
float h;
|
||||
} overlayRect;
|
||||
} overlayRect = {};
|
||||
|
||||
// These overlay positions differ from the other renderers because OpenGL
|
||||
// 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
|
||||
overlayRect.x = 0;
|
||||
overlayRect.y = m_ViewportHeight - newSurface->h;
|
||||
} else {
|
||||
SDL_assert(false);
|
||||
}
|
||||
|
||||
overlayRect.w = newSurface->w;
|
||||
|
Loading…
x
Reference in New Issue
Block a user