From 901939106ef018b87a1a0e3e3db0081d2c25162a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 5 Apr 2008 14:26:05 -0400 Subject: [PATCH] Minor DCL output fix in GLSL profile. --HG-- branch : trunk --- mojoshader.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mojoshader.c b/mojoshader.c index f59e525c..031604d6 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -2099,7 +2099,12 @@ static void emit_GLSL_DCL(Context *ctx) // point limitations there. if (regtype == REG_TYPE_INPUT) + { + push_output(ctx, &ctx->globals); output_line(ctx, "attribute vec4 %s;", varname); + pop_output(ctx); + } // if + else if (regtype == REG_TYPE_OUTPUT) { const uint32 index = ctx->dwords[1]; @@ -2147,6 +2152,11 @@ static void emit_GLSL_DCL(Context *ctx) arrayleft, index_str, arrayright); } // else pop_output(ctx); + } // else if + + else + { + fail(ctx, "unknown DCL register"); } // else } // if