diff options
| author | 3gg <3gg@shellblade.net> | 2026-02-12 18:24:36 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-02-12 18:24:36 -0800 |
| commit | 4b70b9bce466bc68ea083ae468106b44c8a93fae (patch) | |
| tree | 8ccb64a5b106f8b28cc53be36fd5d4cceed50faf /src/main.c | |
| parent | e3e9f5b6fb9173ea38ab4b37b137dd17ffe761ad (diff) | |
Deferred pipeline
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -309,7 +309,6 @@ static bool Render(State* state) { | |||
| 309 | 309 | ||
| 310 | sgClear(state->gfx); | 310 | sgClear(state->gfx); |
| 311 | sgViewport(state->gfx, 0, 0, BufferWidth, BufferHeight); | 311 | sgViewport(state->gfx, 0, 0, BufferWidth, BufferHeight); |
| 312 | sgCheck(state->gfx); | ||
| 313 | // TODO: For easier debugging, overlay the checkerboard on top of the | 312 | // TODO: For easier debugging, overlay the checkerboard on top of the |
| 314 | // other rendered items with alpha blending. | 313 | // other rendered items with alpha blending. |
| 315 | //Checkerboard(state->gfx, BufferWidth, BufferHeight); | 314 | //Checkerboard(state->gfx, BufferWidth, BufferHeight); |
| @@ -330,6 +329,7 @@ static bool Render(State* state) { | |||
| 330 | (sgVec2){1.0, 1.0}, | 329 | (sgVec2){1.0, 1.0}, |
| 331 | }; | 330 | }; |
| 332 | sgTrianglesIndexed(state->gfx, 3, indices, positions, texcoords);*/ | 331 | sgTrianglesIndexed(state->gfx, 3, indices, positions, texcoords);*/ |
| 332 | sgLighting(state->gfx); | ||
| 333 | sgGammaInv(state->gfx, sgColourBuffer(state->gfx), BufferWidth, BufferHeight); | 333 | sgGammaInv(state->gfx, sgColourBuffer(state->gfx), BufferWidth, BufferHeight); |
| 334 | sgPresent(state->gfx, WindowDims, window_surface->pixels); | 334 | sgPresent(state->gfx, WindowDims, window_surface->pixels); |
| 335 | 335 | ||
