diff options
author | Ian Romanick <[email protected]> | 2015-11-12 17:18:53 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-03-01 11:07:19 -0800 |
commit | 64aff35f8409f9a82b3b8a181b9b25e94a0e9fcb (patch) | |
tree | afabe908d275c737af5430c39fbf9449853b74da /src/mesa/drivers/common/meta_generate_mipmap.c | |
parent | 92266ff7a34ef4d16509650d714487a5c74fd27c (diff) |
meta: Use _mesa_check_framebuffer_status instead of _mesa_CheckFramebufferStatus
sed -i -e 's/_mesa_CheckFramebufferStatus(GL_DRAW_FRAMEBUFFER/_mesa_check_framebuffer_status(ctx, ctx->DrawBuffer/' \
-e 's/_mesa_CheckFramebufferStatus(GL_FRAMEBUFFER[^)]*/_mesa_check_framebuffer_status(ctx, ctx->DrawBuffer/' \
-e 's/_mesa_CheckFramebufferStatus(GL_READ_FRAMEBUFFER/_mesa_check_framebuffer_status(ctx, ctx->ReadBuffer/' \
$(grep -rl _mesa_CheckFramebufferStatus src/mesa/drivers)
The second expression catches both GL_FRAMEBUFFER and GL_FRAMEBUFFER_EXT.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta_generate_mipmap.c')
-rw-r--r-- | src/mesa/drivers/common/meta_generate_mipmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/meta_generate_mipmap.c b/src/mesa/drivers/common/meta_generate_mipmap.c index d7db0909573..9369e845c17 100644 --- a/src/mesa/drivers/common/meta_generate_mipmap.c +++ b/src/mesa/drivers/common/meta_generate_mipmap.c @@ -116,7 +116,7 @@ fallback_required(struct gl_context *ctx, GLenum target, _mesa_meta_framebuffer_texture_image(ctx, ctx->DrawBuffer, GL_COLOR_ATTACHMENT0, baseImage, 0); - status = _mesa_CheckFramebufferStatus(fbo_target); + status = _mesa_check_framebuffer_status(ctx, ctx->DrawBuffer); _mesa_BindFramebuffer(fbo_target, fboSave); @@ -360,7 +360,7 @@ _mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target, layer); /* sanity check */ - if (_mesa_CheckFramebufferStatus(GL_FRAMEBUFFER) != + if (_mesa_check_framebuffer_status(ctx, ctx->DrawBuffer) != GL_FRAMEBUFFER_COMPLETE) { _mesa_problem(ctx, "Unexpected incomplete framebuffer in " "_mesa_meta_GenerateMipmap()"); |