always emit BGN/ENDSUB, for now anyway

This commit is contained in:
Brian
2007-03-31 09:09:48 -06:00
parent ec6c8f86f3
commit 00831b5b3b
+1 -4
View File
@@ -1796,14 +1796,11 @@ _slang_emit_code(slang_ir_node *n, slang_var_table *vt,
emitInfo.EmitHighLevelInstructions = 0*ctx->Shader.EmitHighLevelInstructions;
emitInfo.EmitCondCodes = ctx->Shader.EmitCondCodes;
emitInfo.EmitComments = ctx->Shader.EmitComments;
emitInfo.EmitBeginEndSub = 0; /* XXX for compiler debug only */
emitInfo.EmitBeginEndSub = GL_TRUE;
if (!emitInfo.EmitCondCodes) {
emitInfo.EmitHighLevelInstructions = GL_TRUE;
}
if (emitInfo.EmitComments) {
emitInfo.EmitBeginEndSub = GL_TRUE;
}
(void) emit(&emitInfo, n);