Flipped the order of which the stencil add function is called (#157)

This commit is contained in:
Erik Reider 2023-05-18 15:47:14 +02:00 committed by GitHub
parent acafb20b11
commit a160b2c850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -411,8 +411,8 @@ void fx_renderer_begin(struct fx_renderer *renderer, int width, int height) {
fx_framebuffer_update(&renderer->effects_buffer_swapped, width, height);
// Add a stencil buffer to the main buffer & bind the main buffer
fx_framebuffer_add_stencil_buffer(&renderer->main_buffer, width, height);
fx_framebuffer_bind(&renderer->main_buffer);
fx_framebuffer_add_stencil_buffer(&renderer->main_buffer, width, height);
// refresh projection matrix
matrix_projection(renderer->projection, width, height,