Commit ad6a194a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Surfaces always have a container in ffp_blit_set().

parent 51f05a1f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment