Enable texcoords when program object in use.
authorMichal Krol <mjkrol@gmail.org>
Wed, 15 Feb 2006 11:03:57 +0000 (11:03 +0000)
committerMichal Krol <mjkrol@gmail.org>
Wed, 15 Feb 2006 11:03:57 +0000 (11:03 +0000)
src/mesa/main/texstate.c

index 46cebe91067b0ce3b114805978182b90d0c70e20..dce8c362da33154efdca8380faa253cab567feb6 100644 (file)
@@ -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) {
+    */\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);
    }