summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-02-12 18:24:36 -0800
committer3gg <3gg@shellblade.net>2026-02-12 18:24:36 -0800
commit4b70b9bce466bc68ea083ae468106b44c8a93fae (patch)
tree8ccb64a5b106f8b28cc53be36fd5d4cceed50faf /src
parente3e9f5b6fb9173ea38ab4b37b137dd17ffe761ad (diff)
Deferred pipeline
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1fd39e0..6b40c84 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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