From 66a80569dfb31875d40c7546c3ebecc484961e83 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Sat, 16 Nov 2024 00:43:57 +0100 Subject: [PATCH] Add ESSL define --- armorcore/tools/amake/ashader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/armorcore/tools/amake/ashader.c b/armorcore/tools/amake/ashader.c index c6c1cd191..057551e07 100644 --- a/armorcore/tools/amake/ashader.c +++ b/armorcore/tools/amake/ashader.c @@ -417,6 +417,9 @@ static void write_header(char *shader_lang) { } else { strcpy(defines[defines_count++], "GLSL\n"); + if (string_equals(shader_lang, "essl")) { + strcpy(defines[defines_count++], "ESSL\n"); + } } } else if (string_equals(shader_lang, "hlsl")) {