Commit 6874743e authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Add a missing return statement to surface_prepare_texture().

Calling surface_prepare_texture_internal() twice on the same surface is harmless, but unnecessary.
parent 0bf68b84
......@@ -1569,6 +1569,8 @@ void surface_prepare_texture(IWineD3DSurfaceImpl *surface, const struct wined3d_
}
IWineD3DBaseTexture_Release((IWineD3DBaseTexture *)texture);
return;
}
surface_prepare_texture_internal(surface, gl_info, srgb);
......
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