mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 19:00:33 +01:00
postprocess: silence some MSVC float/int warnings
This commit is contained in:
parent
8bd5692a5d
commit
bfc8b8fac5
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue