From 9c5adac342a2f155fe6acacd3902d06cb6a789e8 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Tue, 7 Nov 2023 17:55:51 +0100 Subject: [PATCH] Properly rename INSTANCE_ID and VERTEX_ID in canvas item shaders in the compatibility backend --- drivers/gles3/storage/material_storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gles3/storage/material_storage.cpp b/drivers/gles3/storage/material_storage.cpp index a3ed75c7039..a0dc5f7656d 100644 --- a/drivers/gles3/storage/material_storage.cpp +++ b/drivers/gles3/storage/material_storage.cpp @@ -1157,8 +1157,8 @@ MaterialStorage::MaterialStorage() { actions.renames["SCREEN_PIXEL_SIZE"] = "screen_pixel_size"; actions.renames["FRAGCOORD"] = "gl_FragCoord"; actions.renames["POINT_COORD"] = "gl_PointCoord"; - actions.renames["INSTANCE_ID"] = "gl_InstanceIndex"; - actions.renames["VERTEX_ID"] = "gl_VertexIndex"; + actions.renames["INSTANCE_ID"] = "gl_InstanceID"; + actions.renames["VERTEX_ID"] = "gl_VertexID"; actions.renames["LIGHT_POSITION"] = "light_position"; actions.renames["LIGHT_DIRECTION"] = "light_direction";