diff options
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r-- | src/sna/gen6_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index eb67fc67..6fb72757 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -2498,8 +2498,8 @@ gen6_render_copy(struct sna *sna, uint8_t alu, gen6_get_card_format_for_depth(src->drawable.depth), op->base.src.width = src->drawable.width; op->base.src.height = src->drawable.height; - op->base.src.scale[0] = 1./src->drawable.width; - op->base.src.scale[1] = 1./src->drawable.height; + op->base.src.scale[0] = 1.f/src->drawable.width; + op->base.src.scale[1] = 1.f/src->drawable.height; op->base.src.filter = SAMPLER_FILTER_NEAREST; op->base.src.repeat = SAMPLER_EXTEND_NONE; |