mojoshader.c
changeset 1086 8dc4844bb579
parent 1085 dac9e6cea0d1
child 1087 16f9d37b2656
equal deleted inserted replaced
1085:dac9e6cea0d1 1086:8dc4844bb579
  6651     // extra limitations for ps <= 1.4 ...
  6651     // extra limitations for ps <= 1.4 ...
  6652     else if (!shader_version_atleast(ctx, 1, 4))
  6652     else if (!shader_version_atleast(ctx, 1, 4))
  6653     {
  6653     {
  6654         const SourceArgInfo *src = &ctx->source_args[0];
  6654         const SourceArgInfo *src = &ctx->source_args[0];
  6655         if ((src->regtype != REG_TYPE_TEMP) || (src->regnum != 0) ||
  6655         if ((src->regtype != REG_TYPE_TEMP) || (src->regnum != 0) ||
  6656             (src->swizzle != 0x0000))
  6656             (src->swizzle != 0xFF))
  6657         {
  6657         {
  6658             fail(ctx, "CND src must be r0.a in this shader model");
  6658             fail(ctx, "CND src must be r0.a in this shader model");
  6659         } // if
  6659         } // if
  6660     } // if
  6660     } // if
  6661 } // state_CND
  6661 } // state_CND