diff options
author | Brian Paul <[email protected]> | 2012-10-27 08:58:19 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-29 17:56:05 -0600 |
commit | ec5341800b6abc42ceb612842b8c8029fc12365f (patch) | |
tree | 29231262e2b2c08946f510cfe4a4b5ce6e1b1a2d /src/mesa | |
parent | f6c83e1661c63cf719528f1e80e6996ce49c2d08 (diff) |
vbo: silence MSVC double/float conversion warnings
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/vbo/vbo_attrib_tmp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_attrib_tmp.h b/src/mesa/vbo/vbo_attrib_tmp.h index d3fc77eefde..88484453570 100644 --- a/src/mesa/vbo/vbo_attrib_tmp.h +++ b/src/mesa/vbo/vbo_attrib_tmp.h @@ -61,12 +61,12 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. static inline float conv_ui10_to_norm_float(unsigned ui10) { - return (float)(ui10) / 1023.0; + return ui10 / 1023.0f; } static inline float conv_ui2_to_norm_float(unsigned ui2) { - return (float)(ui2) / 3.0; + return ui2 / 3.0f; } #define ATTRUI10_1( A, UI ) ATTR( A, 1, (UI) & 0x3ff, 0, 0, 1 ) |