From 965832d2df7c473176029eca3bf141048814ce46 Mon Sep 17 00:00:00 2001 From: Tanasart Date: Wed, 8 Nov 2023 09:15:31 +0700 Subject: [PATCH] mac disable instancer --- scripts/d3d_object_instancer/d3d_object_instancer.gml | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/d3d_object_instancer/d3d_object_instancer.gml b/scripts/d3d_object_instancer/d3d_object_instancer.gml index a6d7559f5..c981dc143 100644 --- a/scripts/d3d_object_instancer/d3d_object_instancer.gml +++ b/scripts/d3d_object_instancer/d3d_object_instancer.gml @@ -2,6 +2,7 @@ globalvar INSTANCE_SHADER_VS, INSTANCE_SHADER_PS; function __initInstanceRenderer() { + if(!GMD3D11_IS_SUPPORTED) return; INSTANCE_SHADER_VS = d3d11_shader_compile_vs(working_directory + "Shaders/3dInstance/3dInstanceVS.hlsl", "main", "vs_4_0"); INSTANCE_SHADER_PS = d3d11_shader_compile_ps(working_directory + "Shaders/3dInstance/3dInstancePS.hlsl", "main", "ps_4_0");