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:
Henri Verbeet 2012-04-08 19:13:22 +02:00 committed by Alexandre Julliard
parent 6a706d587a
commit cd0c18f56b

View File

@ -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);