diff options
author | Brian Paul <[email protected]> | 2013-03-20 10:54:07 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-03-21 09:24:35 -0600 |
commit | bfc8b8fac59117e6fa98f87054955501538afa6b (patch) | |
tree | 590e28d2dee3f0317159c384f47f5ef0d6fd026a /src/gallium | |
parent | 8bd5692a5dfb88e4a4831b32be7784a82886c225 (diff) |
postprocess: silence some MSVC float/int warnings
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/postprocess/pp_init.c | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/postprocess/pp_mlaa.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_init.c b/src/gallium/auxiliary/postprocess/pp_init.c index d9552736f00..89aa501b21e 100644 --- a/src/gallium/auxiliary/postprocess/pp_init.c +++ b/src/gallium/auxiliary/postprocess/pp_init.c @@ -260,8 +260,8 @@ pp_init_fbos(struct pp_queue_t *ppq, unsigned int w, p->framebuffer.width = w; p->framebuffer.height = h; - p->viewport.scale[0] = p->viewport.translate[0] = (float) w / 2.0; - p->viewport.scale[1] = p->viewport.translate[1] = (float) h / 2.0; + p->viewport.scale[0] = p->viewport.translate[0] = (float) w / 2.0f; + p->viewport.scale[1] = p->viewport.translate[1] = (float) h / 2.0f; p->viewport.scale[3] = 1.0f; p->viewport.translate[3] = 0.0f; diff --git a/src/gallium/auxiliary/postprocess/pp_mlaa.c b/src/gallium/auxiliary/postprocess/pp_mlaa.c index 297f3e443c1..fcbc573c70a 100644 --- a/src/gallium/auxiliary/postprocess/pp_mlaa.c +++ b/src/gallium/auxiliary/postprocess/pp_mlaa.c @@ -91,8 +91,8 @@ pp_jimenezmlaa_run(struct pp_queue_t *ppq, struct pipe_resource *in, /* Init the pixel size constant */ if (dimensions[0] != p->framebuffer.width || dimensions[1] != p->framebuffer.height) { - constants[0] = 1.0 / p->framebuffer.width; - constants[1] = 1.0 / p->framebuffer.height; + constants[0] = 1.0f / p->framebuffer.width; + constants[1] = 1.0f / p->framebuffer.height; up_consts(p->pipe); dimensions[0] = p->framebuffer.width; |