wined3d: Simplify the data.buffer_object assignment in surface_load_texture().
The surface pbo field should be 0 is SFLAG_PBO is not set.
This commit is contained in:
parent
6a706d587a
commit
cd0c18f56b
@ -6177,7 +6177,7 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
|
||||
mem = surface->resource.allocatedMemory;
|
||||
}
|
||||
|
||||
data.buffer_object = surface->flags & SFLAG_PBO ? surface->pbo : 0;
|
||||
data.buffer_object = surface->pbo;
|
||||
data.addr = mem;
|
||||
surface_upload_data(surface, gl_info, &format, &src_rect, src_pitch, &dst_point, srgb, &data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user