mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Fix pure buffer clear frames (#9)
This commit is contained in:
parent
69f5f6b09b
commit
d205e00b9b
@ -500,6 +500,7 @@ void Citro3DRenderer::Resize(int width, int height, const ViewportTransform& vie
|
||||
|
||||
void Citro3DRenderer::Clear(float r, float g, float b)
|
||||
{
|
||||
StartFrame();
|
||||
u32 color =
|
||||
(static_cast<u32>(r * 255) << 24) | (static_cast<u32>(g * 255) << 16) | (static_cast<u32>(b * 255) << 8) | 255;
|
||||
C3D_RenderTargetClear(m_renderTarget, C3D_CLEAR_ALL, color, 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user