Gamma correct background color correctly;

This commit is contained in:
bjorn 2018-03-10 20:59:36 -08:00
parent 58e59d9772
commit e4618add55
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ void lovrGraphicsReset() {
void lovrGraphicsClear(bool clearColor, bool clearDepth, bool clearStencil, Color color, float depth, int stencil) {
if (clearColor) {
gammaCorrectColor(&color);
float c[4] = { color.r, color.g, color.b, color.a };
glClearBufferfv(GL_COLOR, 0, c);
for (int i = 1; i < state.canvasCount; i++) {