wined3d: Add a missing return statement to surface_prepare_texture().
Calling surface_prepare_texture_internal() twice on the same surface is harmless, but unnecessary.
This commit is contained in:
parent
0bf68b846a
commit
6874743e78
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue