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

wined3d: Simplify the data.buffer_object assignment in surface_load_texture().

The surface pbo field should be 0 is SFLAG_PBO is not set.
parent 6a706d58
......@@ -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);
......
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