diff options
author | Brian Paul <[email protected]> | 2012-10-16 17:54:37 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-16 17:55:39 -0600 |
commit | d21e6c87c026015e395ee0f2b18ba4041c6773d6 (patch) | |
tree | 7ed8bf3502c88205c875861612776b2d73ded607 /src/gallium/drivers/svga/svga_screen.c | |
parent | 200291e087f4b8ce33133cd245bc391b5c9f1fec (diff) |
svga: silence MSVC float/int assignment warnings
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index ef285a9b7ff..4f7970df45c 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -113,8 +113,8 @@ svga_get_paramf(struct pipe_screen *screen, enum pipe_capf param) case PIPE_CAPF_MAX_TEXTURE_ANISOTROPY: if(!sws->get_cap(sws, SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY, &result)) - return 4.0; - return result.u; + return 4.0f; + return (float) result.u; case PIPE_CAPF_MAX_TEXTURE_LOD_BIAS: return 15.0; |