[PATCH 2/5] wined3d: Surfaces always have a container in ffp_blit_set().

Henri Verbeet hverbeet at codeweavers.com
Wed Nov 20 03:04:30 CST 2013


---
 dlls/wined3d/surface.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 320a79b..c1714c1 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -5594,14 +5594,8 @@ static void ffp_blit_free(struct wined3d_device *device) { }
 static HRESULT ffp_blit_set(void *blit_priv, struct wined3d_context *context, const struct wined3d_surface *surface)
 {
     const struct wined3d_gl_info *gl_info = context->gl_info;
-    GLenum target;
 
-    if (surface->container)
-        target = surface->container->target;
-    else
-        target = surface->texture_target;
-
-    gl_info->gl_ops.gl.p_glEnable(target);
+    gl_info->gl_ops.gl.p_glEnable(surface->container->target);
     checkGLcall("glEnable(target)");
 
     return WINED3D_OK;
-- 
1.7.10.4




More information about the wine-patches mailing list