mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 19:00:13 +01:00
more flags for MaintainTnlProgram case, update #includes
This commit is contained in:
parent
8d9afa76eb
commit
68ab379be0
1 changed files with 4 additions and 2 deletions
|
|
@ -62,6 +62,7 @@
|
|||
#if FEATURE_EXT_framebuffer_object
|
||||
#include "fbobject.h"
|
||||
#endif
|
||||
#include "ffvertex_prog.h"
|
||||
#include "framebuffer.h"
|
||||
#include "hint.h"
|
||||
#include "histogram.h"
|
||||
|
|
@ -92,7 +93,6 @@
|
|||
#include "shader/program.h"
|
||||
#include "texenvprogram.h"
|
||||
#endif
|
||||
#include "tnl/t_vp_build.h"
|
||||
#if FEATURE_ARB_shader_objects
|
||||
#include "shaders.h"
|
||||
#endif
|
||||
|
|
@ -1202,7 +1202,9 @@ _mesa_update_state_locked( GLcontext *ctx )
|
|||
prog_flags |= (_NEW_TEXTURE | _NEW_FOG | _DD_NEW_SEPARATE_SPECULAR);
|
||||
}
|
||||
if (ctx->VertexProgram._MaintainTnlProgram) {
|
||||
prog_flags |= (_NEW_TEXTURE | _NEW_FOG | _NEW_LIGHT);
|
||||
prog_flags |= (_NEW_TEXTURE | _NEW_TEXTURE_MATRIX |
|
||||
_NEW_TRANSFORM | _NEW_POINT |
|
||||
_NEW_FOG | _NEW_LIGHT);
|
||||
}
|
||||
if (new_state & prog_flags)
|
||||
update_program( ctx );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue