summaryrefslogtreecommitdiff
path: root/drivers/gles2/rasterizer_storage_gles2.cpp
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-01-17 22:35:22 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-02-11 20:00:42 +0300
commit6f162395ffb5f54a8530172621c2978b6f0cb4eb (patch)
treedb58eda11fbb029e6dda64f421aa41e9a165a687 /drivers/gles2/rasterizer_storage_gles2.cpp
parent1eb424ec9549bdd086dfb54c847d107519be73d9 (diff)
Implementation of 'struct' for shaders
Diffstat (limited to 'drivers/gles2/rasterizer_storage_gles2.cpp')
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp
index 23fc280d91..245531a935 100644
--- a/drivers/gles2/rasterizer_storage_gles2.cpp
+++ b/drivers/gles2/rasterizer_storage_gles2.cpp
@@ -1636,6 +1636,9 @@ void RasterizerStorageGLES2::shader_get_param_list(RID p_shader, List<PropertyIn
pi.name = E->get();
switch (u.type) {
+ case ShaderLanguage::TYPE_STRUCT: {
+ pi.type = Variant::ARRAY;
+ } break;
case ShaderLanguage::TYPE_VOID: {
pi.type = Variant::NIL;
} break;