mojoshader.c
branchtrunk
changeset 214 a4346bb8608b
parent 195 5e68c48dac00
child 231 be53929fe38f
equal deleted inserted replaced
213:73935330a973 214:a4346bb8608b
  1963 
  1963 
  1964     // Make sure this is always set, moved from our generic attribute.
  1964     // Make sure this is always set, moved from our generic attribute.
  1965     reg = declared_attribute(ctx, MOJOSHADER_USAGE_POSITION, 0);
  1965     reg = declared_attribute(ctx, MOJOSHADER_USAGE_POSITION, 0);
  1966     if (reg != NULL)
  1966     if (reg != NULL)
  1967     {
  1967     {
       
  1968         // !!! FIXME: only emit if shader didn't definitely set gl_Position.
  1968         output_line(ctx, "gl_Position = %s;",
  1969         output_line(ctx, "gl_Position = %s;",
  1969                             get_GLSL_varname(ctx, reg->regtype, reg->regnum));
  1970                             get_GLSL_varname(ctx, reg->regtype, reg->regnum));
  1970     } // if
  1971     } // if
  1971 
  1972 
  1972     ctx->indent--;
  1973     ctx->indent--;