[PATCH 1/5] wined3d: Get rid of a superfluous cast.

Henri Verbeet hverbeet at codeweavers.com
Thu Jan 27 08:57:58 CST 2022


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 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);
-- 
2.30.2




More information about the wine-devel mailing list