[PATCH 1/5] wined3d: Fix an msvc warning.
Stefan Dösinger
stefan at codeweavers.com
Wed Jan 1 12:01:41 CST 2014
For some reason msvc 2013 started warning about this double to float
conversion instance. Previous versions did not.
---
dlls/wined3d/wined3d_private.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 5f42964..a0cb5bb 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -938,7 +938,7 @@ void draw_primitive(struct wined3d_device *device, UINT start_idx, UINT index_co
UINT start_instance, UINT instance_count, BOOL indexed) DECLSPEC_HIDDEN;
DWORD get_flexible_vertex_size(DWORD d3dvtVertexType) DECLSPEC_HIDDEN;
-#define eps 1e-8
+#define eps 1e-8f
#define GET_TEXCOORD_SIZE_FROM_FVF(d3dvtVertexType, tex_num) \
(((((d3dvtVertexType) >> (16 + (2 * (tex_num)))) + 1) & 0x03) + 1)
--
1.8.3.2
More information about the wine-patches
mailing list