mojoshader.c
changeset 1155 006e06a6c326
parent 1154 1d6c2aadd16a
child 1156 6e760a19f456
equal deleted inserted replaced
1154:1d6c2aadd16a 1155:006e06a6c326
  3406             return;
  3406             return;
  3407         } // if
  3407         } // if
  3408 
  3408 
  3409         if (texldd)
  3409         if (texldd)
  3410         {
  3410         {
  3411             make_GLSL_srcarg_string_vec2(ctx, 2, src2, sizeof (src2));
  3411             if (sreg->index == TEXTURE_TYPE_2D)
  3412             make_GLSL_srcarg_string_vec2(ctx, 3, src3, sizeof (src3));
  3412             {
       
  3413                 make_GLSL_srcarg_string_vec2(ctx, 2, src2, sizeof (src2));
       
  3414                 make_GLSL_srcarg_string_vec2(ctx, 3, src3, sizeof (src3));
       
  3415             } // if
       
  3416             else
       
  3417             {
       
  3418                 assert((sreg->index == TEXTURE_TYPE_CUBE) || (sreg->index == TEXTURE_TYPE_VOLUME));
       
  3419                 make_GLSL_srcarg_string_vec3(ctx, 2, src2, sizeof (src2));
       
  3420                 make_GLSL_srcarg_string_vec3(ctx, 3, src3, sizeof (src3));
       
  3421             } // else
  3413         } // if
  3422         } // if
  3414 
  3423 
  3415         // !!! FIXME: can TEXLDD set instruction_controls?
  3424         // !!! FIXME: can TEXLDD set instruction_controls?
  3416         // !!! FIXME: does the d3d bias value map directly to GLSL?
  3425         // !!! FIXME: does the d3d bias value map directly to GLSL?
  3417         const char *biassep = "";
  3426         const char *biassep = "";