wined3d: Support zero row pitch in wined3d_texture_gl_upload_data().
commit85c0c49af73cfee0dc46b1920b4f11acd650cea2
authorPaul Gofman <gofmanp@gmail.com>
Thu, 26 Sep 2019 21:17:20 +0000 (27 00:17 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 30 Sep 2019 20:24:27 +0000 (30 22:24 +0200)
tree2f8d9433c05b9d4ac6f00ebb5cdcfc660afaacf2
parent7ec5cd1d477f534a096006103020e70a48b706c2
wined3d: Support zero row pitch in wined3d_texture_gl_upload_data().

Fixes Wine test failure in d3d11 test_copy_subresource_region().
The test failure could be unstable as there was read after data
end in glTexSubImage2D() called from wined3d_texture_gl_upload_data().

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3d11/tests/d3d11.c
dlls/wined3d/texture.c