diff options
author | Brian Paul <[email protected]> | 2009-10-29 19:12:50 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-29 19:12:50 -0600 |
commit | 4a253431abf43a0638afb43605b44a8742b72a60 (patch) | |
tree | becebaeac66a2b5d5e0932254f712046ff862edd /src/mesa/drivers/dri/intel/intel_blit.c | |
parent | f920d496e1b5b01a3ba9bcd7dcff5c19bc109da2 (diff) |
intel: update intel_create_renderbuffer(format), add XRGB support
Pass a gl_format to intel_create_renderbuffer() instead of GLenum.
Add cases for MESA_FORMAT_XRGB8888 textures and renderbuffers.
However, we don't yet create any renderbuffers or textures with that
format. It seems the default alpha value is zero instead of one.
Need to investigate that first.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_blit.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_blit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c index 55d97a0f76a..817223da41d 100644 --- a/src/mesa/drivers/dri/intel/intel_blit.c +++ b/src/mesa/drivers/dri/intel/intel_blit.c @@ -498,6 +498,7 @@ intelClearWithBlit(GLcontext *ctx, GLbitfield mask) switch (irb->texformat) { case MESA_FORMAT_ARGB8888: + case MESA_FORMAT_XRGB8888: clearVal = intel->ClearColor8888; break; case MESA_FORMAT_RGB565: |