mirror of https://github.com/bjornbytes/lovr.git
Gamma correct background color correctly;
This commit is contained in:
parent
58e59d9772
commit
e4618add55
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue