ncannasse 8 years ago
parent
commit
6b80c8a1c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxsl/HlslOut.hx

+ 1 - 1
hxsl/HlslOut.hx

@@ -348,7 +348,7 @@ class HlslOut {
 			add("discard");
 			add("discard");
 		case TReturn(e):
 		case TReturn(e):
 			if( e == null )
 			if( e == null )
-				add("return");
+				add("return _out");
 			else {
 			else {
 				add("return ");
 				add("return ");
 				addValue(e, tabs);
 				addValue(e, tabs);