[Mesa-dev] [PATCH 1/2] meta: Disable GL_TEXTURE_EXTERNAL_OES in meta_begin()

Brian Paul brian.e.paul at gmail.com
Thu Dec 22 09:52:39 PST 2011


On Wed, Dec 21, 2011 at 7:34 PM, Chad Versace
<chad.versace at linux.intel.com> wrote:
> If the meta flag MESA_META_TEXTURE is present, then disable the texture
> target GL_TEXTURE_EXTERNAL_OES.
>
> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
> ---
>  src/mesa/drivers/common/meta.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
> index c5c59eb..5673205 100644
> --- a/src/mesa/drivers/common/meta.c
> +++ b/src/mesa/drivers/common/meta.c
> @@ -576,6 +576,8 @@ _mesa_meta_begin(struct gl_context *ctx, GLbitfield state)
>                _mesa_set_enable(ctx, GL_TEXTURE_CUBE_MAP, GL_FALSE);
>             if (ctx->Extensions.NV_texture_rectangle)
>                _mesa_set_enable(ctx, GL_TEXTURE_RECTANGLE, GL_FALSE);
> +            if (ctx->Extensions.OES_EGL_image_external)
> +               _mesa_set_enable(ctx, GL_TEXTURE_EXTERNAL_OES, GL_FALSE);
>             _mesa_set_enable(ctx, GL_TEXTURE_GEN_S, GL_FALSE);
>             _mesa_set_enable(ctx, GL_TEXTURE_GEN_T, GL_FALSE);
>             _mesa_set_enable(ctx, GL_TEXTURE_GEN_R, GL_FALSE);


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


More information about the mesa-dev mailing list