diff options
author | Eric Anholt <[email protected]> | 2014-02-05 15:45:25 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-02-14 12:09:42 -0800 |
commit | 1020d8937ef52725cc5adafc12465f6332815e82 (patch) | |
tree | 1579054a643b6e0cb330ccf0e6f307e4a02ab260 /src/mesa/drivers/common/meta_blit.c | |
parent | a92581acf2aba5e5e9fa199b778e649d5741754d (diff) |
meta: Don't try to enable FF texturing when we're using GLSL.
On a core context, this would throw an error.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta_blit.c')
-rw-r--r-- | src/mesa/drivers/common/meta_blit.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c index 456fa16491e..a2b284b0d8f 100644 --- a/src/mesa/drivers/common/meta_blit.c +++ b/src/mesa/drivers/common/meta_blit.c @@ -211,7 +211,7 @@ blitframebuffer_texture(struct gl_context *ctx, GL_SKIP_DECODE_EXT); } - if (ctx->API == API_OPENGL_COMPAT || ctx->API == API_OPENGLES) { + if (!glsl_version) { _mesa_TexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); _mesa_set_enable(ctx, target, GL_TRUE); } @@ -393,10 +393,7 @@ _mesa_meta_BlitFramebuffer(struct gl_context *ctx, } - /* glEnable() in gles2 and gles3 doesn't allow GL_TEXTURE_{1D, 2D, etc.} - * tokens. - */ - if (_mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES) + if (!use_glsl_version) _mesa_set_enable(ctx, tex->Target, GL_TRUE); if (mask & GL_COLOR_BUFFER_BIT) { @@ -490,7 +487,7 @@ _mesa_meta_BlitFramebuffer(struct gl_context *ctx, /* XXX can't easily do stencil */ } - if (_mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES) + if (!use_glsl_version) _mesa_set_enable(ctx, tex->Target, GL_FALSE); _mesa_meta_end(ctx); |