From 17beb406f2033ef522b0aebee07bae64317fa8fe Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 30 Apr 2022 10:13:23 -0700 Subject: til_fb: add draw flags for controlling texturability Just adds TIL_FB_DRAW_FLAG_TEXTURABLE so callers can granularly inhibit texturing if desired. --- src/modules/flui2d/flui2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/flui2d/flui2d.c') diff --git a/src/modules/flui2d/flui2d.c b/src/modules/flui2d/flui2d.c index dae73d8..f8afffb 100644 --- a/src/modules/flui2d/flui2d.c +++ b/src/modules/flui2d/flui2d.c @@ -376,7 +376,7 @@ static void flui2d_render_fragment(void *context, unsigned ticks, unsigned cpu, dx1 += ctxt->fluid.dens_b[(int)IX(x1, y1)] * (X - x0); b = dx0 * (1.f - (Y - y0)) + dx1 * (Y - y0); - til_fb_fragment_put_pixel_unchecked(fragment, x, y, gamma_color_to_uint32_rgb(r, g, b)); + til_fb_fragment_put_pixel_unchecked(fragment, 0, x, y, gamma_color_to_uint32_rgb(r, g, b)); } } } -- cgit v1.2.1