From 452ff21ca02e315c64ceeb3f21c1ea357aeb1bc8 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Mon, 16 Feb 2026 09:50:04 -0800 Subject: New gamma API --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 1be2ac3..30d777d 100644 --- a/src/main.c +++ b/src/main.c @@ -344,7 +344,7 @@ static bool Render(State* state) { //sgDepth(state->gfx); //sgNormals(state->gfx); // --> - sgGammaInv(state->gfx, sgColourBuffer(state->gfx), BufferWidth, BufferHeight); + sgGammaInv(sgColourBuffer(state->gfx), BufferWidth, BufferHeight); sgPresent(state->gfx, WindowDims, window_surface->pixels); if (!SDL_UpdateWindowSurface(state->window)) { @@ -391,7 +391,7 @@ static bool LoadTexture(State* state, const char* path) { } assert(channels == desired_channels); // Gamma-correct for lighting. - sgGamma(state->gfx, texture->pixels, texture->width, texture->height); + sgGamma(texture->pixels, texture->width, texture->height); sgTextureRegister(state->gfx, (sgTextureId)id, texture, sgBilinear); return true; } -- cgit v1.2.3