Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/glslang/patches/0002-apple-m1-msaa-fix.patch
45998 views
1
diff --git a/thirdparty/glslang/SPIRV/GlslangToSpv.cpp b/thirdparty/glslang/SPIRV/GlslangToSpv.cpp
2
index 1a5c40c53a..d4af42f70b 100644
3
--- a/thirdparty/glslang/SPIRV/GlslangToSpv.cpp
4
+++ b/thirdparty/glslang/SPIRV/GlslangToSpv.cpp
5
@@ -5181,6 +5181,11 @@ spv::Id TGlslangToSpvTraverser::createSpvVariable(const glslang::TIntermSymbol*
6
glslang::TQualifier typeQualifier = node->getType().getQualifier();
7
TranslateMemoryDecoration(typeQualifier, topLevelDecorations, glslangIntermediate->usingVulkanMemoryModel());
8
for (auto deco : topLevelDecorations) {
9
+#ifdef __APPLE__
10
+ if (deco != spv::Decoration::Restrict &&
11
+ deco != spv::Decoration::RestrictPointer &&
12
+ deco != spv::Decoration::RestrictPointerEXT)
13
+#endif
14
builder.addDecoration(var, deco);
15
}
16
return var;
17
18