mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 06:00:10 +01:00
r300g: Fix bytes_per_line calculation error while displaying surface
This commit is contained in:
parent
59b29516af
commit
da1fb3be82
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ static void radeon_display_surface(struct pipe_winsys *pws,
|
|||
ximage->data = data;
|
||||
ximage->width = psurf->width;
|
||||
ximage->height = psurf->height;
|
||||
ximage->bytes_per_line = r300tex->stride_override;
|
||||
ximage->bytes_per_line = psurf->width * (ximage->bits_per_pixel >> 3);
|
||||
|
||||
XPutImage(rvl_ctx->display, rvl_ctx->drawable,
|
||||
XDefaultGC(rvl_ctx->display, rvl_ctx->screen),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue