diff options
author | Marek Olšák <[email protected]> | 2012-01-22 20:21:36 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-01-25 12:35:19 +0100 |
commit | 636802f615bb1ef192e3c4c3b9ab0d1c83c5ebe0 (patch) | |
tree | 9c33e0e9155ea69d9810cbc014e8d136521baf66 /src | |
parent | 0cf04183633ad4f8140cdb1219235761c402a594 (diff) |
mesa: add missing integer alpha formats to _mesa_base_fbo_format
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | 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 2b3ac2e25bf..eaf2c46b8dc 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: |