projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6c83e1
)
vbo: silence MSVC double/float conversion warnings
author
Brian Paul
<brianp@vmware.com>
Sat, 27 Oct 2012 14:58:19 +0000
(08:58 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 29 Oct 2012 23:56:05 +0000
(17:56 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/vbo/vbo_attrib_tmp.h
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_attrib_tmp.h
b/src/mesa/vbo/vbo_attrib_tmp.h
index d3fc77eefdee2a84a7d5c4b41fd3562dbfecf37e..884844535708a453d964ae990c6256bd7bba4319 100644
(file)
--- 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 )