ctx->Texture._EnabledCoordUnits = ctx->Texture._EnabledUnits;
/* Fragment programs may need texture coordinates but not the
* corresponding texture images.
- */
- if (ctx->FragmentProgram._Enabled) {
+ */\r
+ if (ctx->ShaderObjects.CurrentProgram != NULL) {\r
+ ctx->Texture._EnabledCoordUnits |= (1 << 8) - 1;\r
+ }
+ else if (ctx->FragmentProgram._Enabled) {
ctx->Texture._EnabledCoordUnits |=
(ctx->FragmentProgram.Current->Base.InputsRead >> FRAG_ATTRIB_TEX0);
}