1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix DepthBuffer_ClearBuffer() broken in commit fd478866.

Fixed fog issue in BAR.
This commit is contained in:
Sergey Lipskiy 2014-05-15 23:54:29 +07:00
parent 28a1d19458
commit 277b26cec2

View File

@ -227,7 +227,7 @@ void DepthBuffer_ClearBuffer() {
DepthBuffer *current = depthBuffer.top;
if (current == NULL || current->fbo == 0)
return;
float color[4] = {1.0f, 1.0f, 0.0f, 0.0f};
float color[4] = {1.0f, 1.0f, 0.0f, 1.0f};
glBindImageTexture(depthImageUnit, 0, 0, GL_FALSE, 0, GL_READ_WRITE, GL_RGBA32F);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, current->fbo);
OGL_DrawRect(0,0,VI.width, VI.height, color);