Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luciusDXL committed Feb 24, 2024
2 parents ee4a380 + 7636827 commit f6ed14e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace TFE_RenderBackend
static bool s_useRenderTarget = false;
static bool s_bloomEnable = false;
static DisplayMode s_displayMode;
static f32 s_clearColor[4] = { 0.0f };
static f32 s_clearColor[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
static u32 s_rtWidth, s_rtHeight;

static Blit* s_postEffectBlit;
Expand Down Expand Up @@ -161,7 +161,7 @@ namespace TFE_RenderBackend
s_bloomMerge = new BloomMerge();
s_bloomMerge->init();

glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClearDepth(0.0f);

s_palette = new DynamicTexture();
Expand Down
4 changes: 2 additions & 2 deletions TheForceEngine/TFE_RenderBackend/Win32OpenGL/renderTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void RenderTarget::clear(const f32* color, f32 depth, u8 stencil, bool clearColo
if (color)
glClearColor(color[0], color[1], color[2], color[3]);
else
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);

u32 clearFlags = clearColor ? GL_COLOR_BUFFER_BIT : 0;
if (m_depthBufferHandle)
Expand Down Expand Up @@ -150,4 +150,4 @@ void RenderTarget::copyBackbufferToTarget(RenderTarget* dst)
GL_COLOR_BUFFER_BIT, GL_NEAREST);

glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
}
}

0 comments on commit f6ed14e

Please sign in to comment.