From 277b26cec2cf356e011cb6a0ef9e85219c23a3a6 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 15 May 2014 23:54:29 +0700 Subject: [PATCH] Fix DepthBuffer_ClearBuffer() broken in commit fd478866. Fixed fog issue in BAR. --- DepthBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DepthBuffer.cpp b/DepthBuffer.cpp index 88ec29e5..25108860 100644 --- a/DepthBuffer.cpp +++ b/DepthBuffer.cpp @@ -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);