mojoshader_assembler.c
changeset 502 3cb501248990
parent 500 38ce929323c2
child 504 d79ae3b98f47
equal deleted inserted replaced
501:314aa5c32820 502:3cb501248990
   480             return fail(ctx, "Output register not valid in this shader type");
   480             return fail(ctx, "Output register not valid in this shader type");
   481         regtype = REG_TYPE_OUTPUT;
   481         regtype = REG_TYPE_OUTPUT;
   482     } // else if
   482     } // else if
   483     else if (strcasecmp(t, "oT") == 0)
   483     else if (strcasecmp(t, "oT") == 0)
   484     {
   484     {
   485         if (shader_is_vertex(ctx) || shader_version_atleast(ctx, 3, 0))
   485         if (shader_is_vertex(ctx) && shader_version_atleast(ctx, 3, 0))
   486             return fail(ctx, "Output register not valid in this shader type");
   486             return fail(ctx, "Output register not valid in this shader type");
   487         regtype = REG_TYPE_OUTPUT;
   487         regtype = REG_TYPE_OUTPUT;
   488     } // else if
   488     } // else if
   489     else if (strcasecmp(t, "a") == 0)
   489     else if (strcasecmp(t, "a") == 0)
   490     {
   490     {