[PATCH 4/5] wined3d: Get rid of the unused context_get_rt_surface().

Henri Verbeet hverbeet at codeweavers.com
Wed Mar 14 03:09:15 CDT 2018


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/wined3d_private.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 7da2da4f5c8..8acf3b04a74 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -4419,15 +4419,6 @@ static inline void wined3d_insert_bits(DWORD *bitstream,
     }
 }
 
-static inline struct wined3d_surface *context_get_rt_surface(const struct wined3d_context *context)
-{
-    struct wined3d_texture *texture = context->current_rt.texture;
-
-    if (!texture)
-        return NULL;
-    return texture->sub_resources[context->current_rt.sub_resource_idx].u.surface;
-}
-
 static inline void wined3d_from_cs(const struct wined3d_cs *cs)
 {
     if (cs->thread)
-- 
2.11.0




More information about the wine-devel mailing list