[Mesa-dev] [PATCH 3/5] mesa: add missing integer alpha formats to _mesa_base_fbo_format

Brian Paul brian.e.paul at gmail.com
Mon Jan 23 05:44:14 PST 2012


On Sun, Jan 22, 2012 at 4:36 PM, Marek Olšák <maraeo at gmail.com> wrote:
> ---
>  src/mesa/main/fbobject.c |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
> index 2b3ac2e..eaf2c46 100644
> --- a/src/mesa/main/fbobject.c
> +++ b/src/mesa/main/fbobject.c
> @@ -1280,6 +1280,15 @@ _mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat)
>       return ctx->Extensions.EXT_texture_integer &&
>              ctx->Extensions.ARB_framebuffer_object ? GL_LUMINANCE_ALPHA : 0;
>
> +   case GL_ALPHA8I_EXT:
> +   case GL_ALPHA8UI_EXT:
> +   case GL_ALPHA16I_EXT:
> +   case GL_ALPHA16UI_EXT:
> +   case GL_ALPHA32I_EXT:
> +   case GL_ALPHA32UI_EXT:
> +      return ctx->Extensions.EXT_texture_integer &&
> +             ctx->Extensions.ARB_framebuffer_object ? GL_ALPHA : 0;
> +
>    case GL_RGB10_A2UI:
>       return ctx->Extensions.ARB_texture_rgb10_a2ui ? GL_RGBA : 0;
>    default:

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list