wined3d: Remove an ugly NULL cast.

Francois Gouget fgouget at free.fr
Mon Sep 1 05:25:19 CDT 2014


---

This is mostly cosmetic I guess.

 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 693267e..8f5011e 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2807,7 +2807,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 *)NULL + stream->offset + element->offset;
+            stream_info->elements[idx].data.addr = (BYTE *)stream->offset + element->offset;
             stream_info->elements[idx].stride = stream->stride;
             stream_info->elements[idx].stream_idx = element->input_slot;
 
-- 
2.1.0



More information about the wine-patches mailing list