summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-31 12:27:08 +0000
committerrodri <rgl@antares-labs.eu>2024-08-31 12:27:08 +0000
commitcb2369f7af2a9c394b91272bd1c6c7fe8cb275b1 (patch)
treed4f1d3165422d3395c27d4d8160e47110538f439
parentf98dcc45225fa78341aba06137b05b9b6b89cb12 (diff)
downloadlibgraphics-cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1.tar.gz
libgraphics-cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1.tar.bz2
libgraphics-cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1.zip
render: get rid of useless temporary.
-rw-r--r--render.c5
1 files changed, 2 insertions, 3 deletions
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;
}
}