Showing the changes to interface/src/renderer/DeferredLightingEffect.cpp (1 of 1 file). Show all
Unified · Split
| @@ -189,6 +189,7 @@ void DeferredLightingEffect::render() { · 188 unmodified lines | |||
| 189 | 189 | ||
| 190 | // now transfer the lit region to the primary fbo | 190 | // now transfer the lit region to the primary fbo |
| 191 | glEnable(GL_BLEND); | 191 | glEnable(GL_BLEND); |
| 192 | glColorMask(true, true, true, false); | ||
| 192 | 193 | ||
| 193 | primaryFBO->bind(); | 194 | primaryFBO->bind(); |
| 194 | 195 | ||
| @@ -200,6 +201,7 @@ void DeferredLightingEffect::render() { · 5 unmodified lines | |||
| 200 | glBindTexture(GL_TEXTURE_2D, 0); | 201 | glBindTexture(GL_TEXTURE_2D, 0); |
| 201 | glDisable(GL_TEXTURE_2D); | 202 | glDisable(GL_TEXTURE_2D); |
| 202 | 203 | ||
| 204 | glColorMask(true, true, true, true); | ||
| 203 | glEnable(GL_LIGHTING); | 205 | glEnable(GL_LIGHTING); |
| 204 | glEnable(GL_COLOR_MATERIAL); | 206 | glEnable(GL_COLOR_MATERIAL); |
| 205 | glEnable(GL_DEPTH_TEST); | 207 | glEnable(GL_DEPTH_TEST); |