summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}