diff --git a/crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py b/crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py index 35e9dfba..9dc170a6 100644 --- a/crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py +++ b/crosstl/src/backend/DirectX/DirectxCrossGLCodeGen.py @@ -36,7 +36,6 @@ def __init__(self): } def generate(self, ast): - print(ast) self.process_structs(ast) code = "shader main {\n" diff --git a/crosstl/src/backend/Metal/MetalCrossGLCodeGen.py b/crosstl/src/backend/Metal/MetalCrossGLCodeGen.py index dd4d48f5..f8fe89a5 100644 --- a/crosstl/src/backend/Metal/MetalCrossGLCodeGen.py +++ b/crosstl/src/backend/Metal/MetalCrossGLCodeGen.py @@ -238,4 +238,6 @@ def generate_expression(self, expr, is_main=False): return str(expr) def map_type(self, metal_type): - return self.type_map.get(metal_type, metal_type) + if metal_type: + return self.type_map.get(metal_type) + return metal_type