浏览代码

Merge pull request #84585 from clayjohn/GL-instance-id

Properly rename ``INSTANCE_ID`` and ``VERTEX_ID`` in canvas item shaders in the compatibility backend
Rémi Verschelde 1 年之前
父节点
当前提交
2cfb5ff23a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/gles3/storage/material_storage.cpp

+ 2 - 2
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";