mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-07 08:00:36 +01:00
i965: adjust the byte order of clear color. fix #14165
This commit is contained in:
parent
fd776e10b3
commit
89faa648a5
1 changed files with 2 additions and 1 deletions
|
|
@ -419,7 +419,8 @@ static void meta_draw_quad(struct intel_context *intel,
|
|||
brw->metaops.vbo);
|
||||
|
||||
/* Convert incoming ARGB to required RGBA */
|
||||
color = (color >> 24) | (color << 8);
|
||||
/* Note this color is stored as GL_UNSIGNED_BYTE */
|
||||
color = (color & 0xff00ff00) | (((color >> 16) | (color << 16)) & 0xff00ff);
|
||||
|
||||
ctx->Driver.BufferSubData(ctx,
|
||||
GL_ARRAY_BUFFER_ARB,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue