Showing the changes to libraries/render-utils/src/DeferredLightingEffect.cpp (1 of 10 files). Show all
Unified · Split
| @@ -169,7 +169,8 @@ void DeferredLightingEffect::render() { · 168 unmodified lines | ||
| 169 | 169 | QOpenGLFramebufferObject* freeFBO = DependencyManager::get<GlowEffect>()->getFreeFramebufferObject(); |
| 170 | 170 | freeFBO->bind(); |
| 171 | 171 | glClear(GL_COLOR_BUFFER_BIT); |
| 172 | − | |
| 172 | + glEnable(GL_FRAMEBUFFER_SRGB); | |
| 173 | + | |
| 173 | 174 | glBindTexture(GL_TEXTURE_2D, primaryFBO->texture()); |
| 174 | 175 | |
| 175 | 176 | glActiveTexture(GL_TEXTURE1); |
| @@ -371,6 +372,7 @@ void DeferredLightingEffect::render() { · 195 unmodified lines | ||
| 371 | 372 | glBindTexture(GL_TEXTURE_2D, 0); |
| 372 | 373 | |
| 373 | 374 | freeFBO->release(); |
| 375 | + glDisable(GL_FRAMEBUFFER_SRGB); | |
| 374 | 376 | |
| 375 | 377 | glDisable(GL_CULL_FACE); |
| 376 | 378 | |