Fix crash when the destination stride != source stride
When we allocate the locally mapped texture size, use the announced stride (aka bytes per line) instead of the texture width. Otherwise we might overflow and crash eventually.
When we allocate the locally mapped texture size, use the announced stride (aka bytes per line) instead of the texture width. Otherwise we might overflow and crash eventually.