wined3d: Set GL_UNPACK_ALIGNMENT to 1.
commit78ae4f66d7a6181499261ca4e8311de7175404cc
authorMatteo Bruni <mbruni@codeweavers.com>
Fri, 20 Feb 2015 12:06:02 +0000 (20 13:06 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 20 Feb 2015 13:53:09 +0000 (20 22:53 +0900)
tree0bf19b66e243d0bf8856281450a6294118ae137a
parentd91ba373b71bf425204281fad1f8b53b5a689023
wined3d: Set GL_UNPACK_ALIGNMENT to 1.

Alignment should be taken care by the surface pitch and
GL_UNPACK_ROW_LENGTH alone just fine, as long as the pitch is a
multiple of the pixel size. Client APIs respect that,
internally we need to do the same and the changes to
surface_load_texture and wined3d_volume_upload_data are there
for this reason (e.g. WINED3DFMT_R16G16_SNORM is emulated with
GL_RGB16 when NV_texture_shader isn't supported).
dlls/wined3d/context.c
dlls/wined3d/surface.c
dlls/wined3d/volume.c