mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
Enable texcoords when program object in use.
This commit is contained in:
parent
dc3a922cf3
commit
5bc35a823a
1 changed files with 5 additions and 2 deletions
|
|
@ -2937,8 +2937,11 @@ update_texture_state( GLcontext *ctx )
|
|||
ctx->Texture._EnabledCoordUnits = ctx->Texture._EnabledUnits;
|
||||
/* Fragment programs may need texture coordinates but not the
|
||||
* corresponding texture images.
|
||||
*/
|
||||
if (ctx->FragmentProgram._Enabled) {
|
||||
*/
|
||||
if (ctx->ShaderObjects.CurrentProgram != NULL) {
|
||||
ctx->Texture._EnabledCoordUnits |= (1 << 8) - 1;
|
||||
}
|
||||
else if (ctx->FragmentProgram._Enabled) {
|
||||
ctx->Texture._EnabledCoordUnits |=
|
||||
(ctx->FragmentProgram.Current->Base.InputsRead >> FRAG_ATTRIB_TEX0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue