diff options
author | rodri <rgl@antares-labs.eu> | 2024-08-31 12:27:08 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-08-31 12:27:08 +0000 |
commit | cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1 (patch) | |
tree | d4f1d3165422d3395c27d4d8160e47110538f439 | |
parent | f98dcc45225fa78341aba06137b05b9b6b89cb12 (diff) | |
download | libgraphics-cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1.tar.gz libgraphics-cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1.tar.bz2 libgraphics-cb2369f7af2a9c394b91272bd1c6c7fe8cb275b1.zip |
render: get rid of useless temporary.
-rw-r--r-- | render.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; } } |