mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
swrast: fix incorrect width for direct/nearest blit
Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
728bf86a23
commit
b70b486249
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ blit_nearest(struct gl_context *ctx,
|
|||
/* store pixel row in destination */
|
||||
switch (mode) {
|
||||
case DIRECT:
|
||||
memcpy(dstRowStart, dstBuffer, pixelSize * srcWidth);
|
||||
memcpy(dstRowStart, dstBuffer, pixelSize * dstWidth);
|
||||
break;
|
||||
case UNPACK_RGBA_FLOAT:
|
||||
_mesa_pack_float_rgba_row(drawRb->Format, dstWidth, dstBuffer,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue