[PATCH] wined3d: unshadow rect variable (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Oct 22 06:03:44 CDT 2011
Hi,
unshadow rect parameter. Also mark it as (currently) unused.
Ciao, Marcus
---
dlls/wined3d/surface.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 54cacbd..edae5f9 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -5910,7 +5910,7 @@ static HRESULT surface_load_drawable(struct wined3d_surface *surface,
}
static HRESULT surface_load_texture(struct wined3d_surface *surface,
- const struct wined3d_gl_info *gl_info, const RECT *rect, BOOL srgb)
+ const struct wined3d_gl_info *gl_info, const RECT *rect/*unused*/, BOOL srgb)
{
const DWORD attach_flags = WINED3DFMT_FLAG_FBO_ATTACHABLE | WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB;
RECT src_rect = {0, 0, surface->resource.width, surface->resource.height};
@@ -5956,10 +5956,10 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
{
DWORD src_location = surface->flags & SFLAG_INRB_RESOLVED ? SFLAG_INRB_RESOLVED : SFLAG_INRB_MULTISAMPLE;
DWORD dst_location = srgb ? SFLAG_INSRGBTEX : SFLAG_INTEXTURE;
- RECT rect = {0, 0, surface->resource.width, surface->resource.height};
+ RECT srect = {0, 0, surface->resource.width, surface->resource.height};
surface_blt_fbo(device, WINED3DTEXF_POINT, surface, src_location,
- &rect, surface, dst_location, &rect);
+ &srect, surface, dst_location, &srect);
return WINED3D_OK;
}
--
1.7.3.4
More information about the wine-patches
mailing list