Skip to content

Commit

Permalink
Fixed the default renderer to call into begin/end pass and commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tanis2000 committed Oct 16, 2024
1 parent 831ad72 commit 85cfec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/binocle/core/binocle_gd.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,10 @@ void binocle_gd_commit() {
void binocle_gd_render(binocle_gd *gd, struct binocle_window *window, float design_width, float design_height, kmAABB2 viewport, kmMat4 matrix, float scale) {
binocle_gd_render_offscreen(gd);
binocle_gd_render_flat(gd);
binocle_gd_begin_screen_pass(gd, window);
binocle_gd_render_screen(gd, window, design_width, design_height, viewport, matrix, scale);
binocle_gd_end_screen_pass();
binocle_gd_commit();
}

void binocle_gd_setup_flat_pipeline(binocle_gd *gd, const char *vs_src, const char *fs_src) {
Expand Down

0 comments on commit 85cfec5

Please sign in to comment.