mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 22:38:06 +02:00
meta: Fix saving the active program
When saving the active program in _mesa_meta_begin, it was actually
saving the fragment program instead. This means that if the
application binds a program that only has a vertex shader then when
the meta saved state is restored it will forget the bound program.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41969
Reviewed-by: Chad Versace <chad@chad-versace.us>
(cherry picked from commit 5625f78cd7)
This commit is contained in:
parent
c3fd76ce09
commit
986319cd20
1 changed files with 1 additions and 1 deletions
|
|
@ -471,7 +471,7 @@ _mesa_meta_begin(struct gl_context *ctx, GLbitfield state)
|
|||
_mesa_reference_shader_program(ctx, &save->FragmentShader,
|
||||
ctx->Shader.CurrentFragmentProgram);
|
||||
_mesa_reference_shader_program(ctx, &save->ActiveShader,
|
||||
ctx->Shader.CurrentFragmentProgram);
|
||||
ctx->Shader.ActiveProgram);
|
||||
|
||||
_mesa_UseProgramObjectARB(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue