diff options
author | Kenneth Graunke <[email protected]> | 2014-02-26 17:40:43 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-02-27 10:07:40 -0800 |
commit | 085f61bd4eb4e75c705cc82ce8c2ecacff6b8383 (patch) | |
tree | fdb80fe66f8f77a65ad39c6f5497b43e17f4ae11 /src/mesa/drivers/common/meta_blit.c | |
parent | cf719a0204effd787fab6f285d72af9c1c144544 (diff) |
meta: Drop ctx->API checks.
API is always API_OPENGL_COMPAT (since commit 4e4a537ad55f61a25,
"meta: Push into desktop GL mode when doing meta operations."),
so most of these checks do nothing.
We could instead check save->API to only bother setting/restoring
relevant GL state, but I'm not sure saving a few _mesa_set_enable
calls is worth the complexity. My understanding is the point of
the ctx->API guards was to avoid raising GL errors.
Signed-off-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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c index b8836f40097..907c2cdf326 100644 --- a/src/mesa/drivers/common/meta_blit.c +++ b/src/mesa/drivers/common/meta_blit.c @@ -622,8 +622,7 @@ _mesa_meta_BlitFramebuffer(struct gl_context *ctx, struct vertex verts[4]; GLboolean newTex; const GLboolean use_glsl_version = ctx->Extensions.ARB_vertex_shader && - ctx->Extensions.ARB_fragment_shader && - (ctx->API != API_OPENGLES); + ctx->Extensions.ARB_fragment_shader; /* In addition to falling back if the blit size is larger than the maximum * texture size, fallback if the source is multisampled. This fallback can |