Skip to content

Commit

Permalink
Fix to M3X2 in GLSL profile.
Browse files Browse the repository at this point in the history
M3X2 should output a vec2, not a vec3.

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 16, 2008
1 parent e9262f1 commit 5bf4cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader.c
Expand Up @@ -2317,7 +2317,7 @@ static void emit_GLSL_M3X2(Context *ctx)
const char *row1 = make_GLSL_sourcearg_string(ctx, 2);

const char *code = make_GLSL_destarg_assign(ctx, 0,
"vec3(dot(vec3(%s), vec3(%s)), "
"vec2(dot(vec3(%s), vec3(%s)), "
"dot(vec3(%s), vec3(%s)))",
src0, row0, src0, row1);
output_line(ctx, "%s", code);
Expand Down

0 comments on commit 5bf4cd2

Please sign in to comment.