diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_tex_subimage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex_subimage.c b/src/mesa/drivers/dri/i965/intel_tex_subimage.c index a72d31304d7..f7adfef1a86 100644 --- a/src/mesa/drivers/dri/i965/intel_tex_subimage.c +++ b/src/mesa/drivers/dri/i965/intel_tex_subimage.c @@ -577,7 +577,8 @@ intel_texsubimage_tiled_memcpy(struct gl_context * ctx, (texImage->TexFormat == MESA_FORMAT_A8 && format == GL_ALPHA)) { cpp = 1; mem_copy = memcpy; - } else if (texImage->TexFormat == MESA_FORMAT_ARGB8888) { + } else if ((texImage->TexFormat == MESA_FORMAT_ARGB8888) || + (texImage->TexFormat == MESA_FORMAT_XRGB8888)) { cpp = 4; if (format == GL_BGRA) { mem_copy = memcpy; |