Henri Verbeet : wined3d: Surfaces always have a container in draw_textured_quad().
Alexandre Julliard
julliard at winehq.org
Mon Nov 18 14:51:39 CST 2013
Module: wine
Branch: master
Commit: 96fbf9fed385c4a3e6e4f29ccae272570e90c647
URL: http://source.winehq.org/git/wine.git/?a=commit;h=96fbf9fed385c4a3e6e4f29ccae272570e90c647
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Nov 18 10:46:18 2013 +0100
wined3d: Surfaces always have a container in draw_textured_quad().
---
dlls/wined3d/surface.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index a5d9118..bc97ac7 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -333,6 +333,7 @@ void draw_textured_quad(const struct wined3d_surface *src_surface, struct wined3
const RECT *src_rect, const RECT *dst_rect, enum wined3d_texture_filter_type filter)
{
const struct wined3d_gl_info *gl_info = context->gl_info;
+ struct wined3d_texture *texture = src_surface->container;
struct blt_info info;
surface_get_blt_info(src_surface->texture_target, src_rect, src_surface->pow2Width, src_surface->pow2Height, &info);
@@ -376,14 +377,10 @@ void draw_textured_quad(const struct wined3d_surface *src_surface, struct wined3
/* We changed the filtering settings on the texture. Inform the
* container about this to get the filters reset properly next draw. */
- if (src_surface->container)
- {
- struct wined3d_texture *texture = src_surface->container;
- texture->texture_rgb.states[WINED3DTEXSTA_MAGFILTER] = WINED3D_TEXF_POINT;
- texture->texture_rgb.states[WINED3DTEXSTA_MINFILTER] = WINED3D_TEXF_POINT;
- texture->texture_rgb.states[WINED3DTEXSTA_MIPFILTER] = WINED3D_TEXF_NONE;
- texture->texture_rgb.states[WINED3DTEXSTA_SRGBTEXTURE] = FALSE;
- }
+ texture->texture_rgb.states[WINED3DTEXSTA_MAGFILTER] = WINED3D_TEXF_POINT;
+ texture->texture_rgb.states[WINED3DTEXSTA_MINFILTER] = WINED3D_TEXF_POINT;
+ texture->texture_rgb.states[WINED3DTEXSTA_MIPFILTER] = WINED3D_TEXF_NONE;
+ texture->texture_rgb.states[WINED3DTEXSTA_SRGBTEXTURE] = FALSE;
}
/* Works correctly only for <= 4 bpp formats. */
More information about the wine-cvs
mailing list