ref: cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1
parent: f98dcc45225fa78341aba06137b05b9b6b89cb12
author: rodri <rgl@antares-labs.eu>
date: Sat Aug 31 08:27:08 EDT 2024
render: get rid of useless temporary.
--- a/render.c
+++ b/render.c
@@ -54,7 +54,7 @@
{
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 @@
rasterput(r, sp->p, &c);
break;
case FLOAT32:
- z = *(float*)v;
- rasterput(r, sp->p, &z);
+ rasterput(r, sp->p, v);
break;
}
}