Henri Verbeet : wined3d: Get rid of a superfluous cast.

Alexandre Julliard julliard at winehq.org
Thu Jan 27 15:36:18 CST 2022


Module: wine
Branch: master
Commit: a7cd33ef5155ecb63bdf889d21f52db5099d151b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a7cd33ef5155ecb63bdf889d21f52db5099d151b

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Jan 27 15:57:58 2022 +0100

wined3d: Get rid of a superfluous cast.

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/wined3d/context_gl.c b/dlls/wined3d/context_gl.c
index 9fd2ed67dcc..eed27dd445d 100644
--- a/dlls/wined3d/context_gl.c
+++ b/dlls/wined3d/context_gl.c
@@ -2706,7 +2706,7 @@ static void *wined3d_bo_gl_map(struct wined3d_bo_gl *bo, struct wined3d_context_
 
 map:
     if (bo->b.map_ptr)
-        return (uint8_t *)bo->b.map_ptr;
+        return bo->b.map_ptr;
 
     gl_info = context_gl->gl_info;
     wined3d_context_gl_bind_bo(context_gl, bo->binding, bo->id);




More information about the wine-cvs mailing list