diff options
author | Marek Olšák <marek.olsak@amd.com> | 2017-06-09 23:27:41 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2017-06-22 01:51:02 +0200 |
commit | 68a0e15f44cf351eab97a734b1cffeade1873fdf (patch) | |
tree | 99162f29dc09f7f0c11e89d5508d9f7c337f6892 /src/mesa/vbo | |
parent | 585c5cf8a514783d9ed31dba3aa432797dd5f0e8 (diff) |
mesa: replace VP/FP/ATIfs _Enabled flags with helper functions
These are only used in the GL compatibility profile.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_save_draw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index e718f29496a..8a4b6599554 100644 --- a/src/mesa/vbo/vbo_save_draw.c +++ b/src/mesa/vbo/vbo_save_draw.c @@ -293,8 +293,10 @@ vbo_save_playback_vertex_list(struct gl_context *ctx, void *data) _mesa_update_state( ctx ); /* XXX also need to check if shader enabled, but invalid */ - if ((ctx->VertexProgram.Enabled && !ctx->VertexProgram._Enabled) || - (ctx->FragmentProgram.Enabled && !ctx->FragmentProgram._Enabled)) { + if ((ctx->VertexProgram.Enabled && + !_mesa_arb_vertex_program_enabled(ctx)) || + (ctx->FragmentProgram.Enabled && + !_mesa_arb_fragment_program_enabled(ctx))) { _mesa_error(ctx, GL_INVALID_OPERATION, "glBegin (invalid vertex/fragment program)"); return; |