From cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 31 Aug 2024 12:27:08 +0000 Subject: render: get rid of useless temporary. --- render.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'render.c') diff --git a/render.c b/render.c index 7b1bbb8..1d8a32a 100644 --- a/render.c +++ b/render.c @@ -54,7 +54,7 @@ fsparams_toraster(FSparams *sp, char *rname, void *v) { Framebuf *fb; Raster *r; - ulong c, z; + ulong c; /* keep the user away from the color buffer */ if(rname == nil || v == nil) @@ -71,8 +71,7 @@ fsparams_toraster(FSparams *sp, char *rname, void *v) rasterput(r, sp->p, &c); break; case FLOAT32: - z = *(float*)v; - rasterput(r, sp->p, &z); + rasterput(r, sp->p, v); break; } } -- cgit v1.2.3