diff options
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -344,7 +344,7 @@ static bool Render(State* state) { | |||
| 344 | //sgDepth(state->gfx); | 344 | //sgDepth(state->gfx); |
| 345 | //sgNormals(state->gfx); | 345 | //sgNormals(state->gfx); |
| 346 | // --> | 346 | // --> |
| 347 | sgGammaInv(state->gfx, sgColourBuffer(state->gfx), BufferWidth, BufferHeight); | 347 | sgGammaInv(sgColourBuffer(state->gfx), BufferWidth, BufferHeight); |
| 348 | sgPresent(state->gfx, WindowDims, window_surface->pixels); | 348 | sgPresent(state->gfx, WindowDims, window_surface->pixels); |
| 349 | 349 | ||
| 350 | if (!SDL_UpdateWindowSurface(state->window)) { | 350 | if (!SDL_UpdateWindowSurface(state->window)) { |
| @@ -391,7 +391,7 @@ static bool LoadTexture(State* state, const char* path) { | |||
| 391 | } | 391 | } |
| 392 | assert(channels == desired_channels); | 392 | assert(channels == desired_channels); |
| 393 | // Gamma-correct for lighting. | 393 | // Gamma-correct for lighting. |
| 394 | sgGamma(state->gfx, texture->pixels, texture->width, texture->height); | 394 | sgGamma(texture->pixels, texture->width, texture->height); |
| 395 | sgTextureRegister(state->gfx, (sgTextureId)id, texture, sgBilinear); | 395 | sgTextureRegister(state->gfx, (sgTextureId)id, texture, sgBilinear); |
| 396 | return true; | 396 | return true; |
| 397 | } | 397 | } |
