mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
fix stride bug in RGB and BGR span rendering
This commit is contained in:
parent
746e59f207
commit
3340a9ea9e
1 changed files with 4 additions and 4 deletions
|
|
@ -282,8 +282,8 @@ clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
|
|||
#define SPAN_VARS \
|
||||
const OSMesaContext osmesa = OSMESA_CONTEXT(ctx);
|
||||
#define INIT_PIXEL_PTR(P, X, Y) \
|
||||
GLchan *P = osmesa->rowaddr[Y] + 4 * (X)
|
||||
#define INC_PIXEL_PTR(P) P += 4
|
||||
GLchan *P = osmesa->rowaddr[Y] + 3 * (X)
|
||||
#define INC_PIXEL_PTR(P) P += 3
|
||||
#define STORE_RGB_PIXEL(P, X, Y, R, G, B) \
|
||||
P[0] = R; P[1] = G; P[2] = B
|
||||
#define STORE_RGBA_PIXEL(P, X, Y, R, G, B, A) \
|
||||
|
|
@ -297,8 +297,8 @@ clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
|
|||
#define SPAN_VARS \
|
||||
const OSMesaContext osmesa = OSMESA_CONTEXT(ctx);
|
||||
#define INIT_PIXEL_PTR(P, X, Y) \
|
||||
GLchan *P = osmesa->rowaddr[Y] + 4 * (X)
|
||||
#define INC_PIXEL_PTR(P) P += 4
|
||||
GLchan *P = osmesa->rowaddr[Y] + 3 * (X)
|
||||
#define INC_PIXEL_PTR(P) P += 3
|
||||
#define STORE_RGB_PIXEL(P, X, Y, R, G, B) \
|
||||
P[0] = B; P[1] = G; P[2] = R
|
||||
#define STORE_RGBA_PIXEL(P, X, Y, R, G, B, A) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue