Merge pull request #299 from reboot/fix_creating_flipped_textures

Fix creating textures from image data with flipping
This commit is contained in:
Jim 2014-11-15 16:14:36 -08:00
commit 4e61dd93c5

View File

@ -891,7 +891,7 @@ void gs_texture_set_image(gs_texture_t *tex, const uint8_t *data,
if (flip) {
for (y = height-1; y >= 0; y--)
memcpy(ptr + (uint32_t)y * linesize_out,
data + (uint32_t)y * linesize,
data + (uint32_t)(height - y - 1) * linesize,
row_copy);
} else if (linesize == linesize_out) {