Henri Verbeet : wined3d: Avoid a compiler warning in context_stream_info_from_declaration().

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 22 14:12:21 CDT 2014


Module: wine
Branch: master
Commit: 96d845aa468bf09f32c03fbee584201df52a3fef
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=96d845aa468bf09f32c03fbee584201df52a3fef

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Jul 22 08:44:24 2014 +0200

wined3d: Avoid a compiler warning in context_stream_info_from_declaration().

---

 dlls/wined3d/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 622cca1..70b9b31 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2794,7 +2794,7 @@ void context_stream_info_from_declaration(struct wined3d_context *context,
 
             stream_info->elements[idx].format = element->format;
             stream_info->elements[idx].data.buffer_object = 0;
-            stream_info->elements[idx].data.addr = (BYTE *)stream->offset + element->offset;
+            stream_info->elements[idx].data.addr = (BYTE *)NULL + stream->offset + element->offset;
             stream_info->elements[idx].stride = stream->stride;
             stream_info->elements[idx].stream_idx = element->input_slot;
 




More information about the wine-cvs mailing list