diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2019-08-25 15:21:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-25 15:21:56 +0300 |
commit | 14b173d0d993b2f1c486890bb68b932db6090e88 (patch) | |
tree | ce5352202d9af870a31c101c6f583e5e06d62d12 /drivers/gles2 | |
parent | 660682a2a38815675ac338bcd9232789fe815958 (diff) | |
parent | 982becfa39b0f48c0fa9308097c43f18e4abdc29 (diff) |
Merge pull request #31650 from Chaosus/fix_shader_hint_range
Fix hint range step for integer in shaders
Diffstat (limited to 'drivers/gles2')
-rw-r--r-- | drivers/gles2/rasterizer_storage_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 8e026b96ce..5c02d8096d 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -1570,7 +1570,7 @@ void RasterizerStorageGLES2::shader_get_param_list(RID p_shader, List<PropertyIn if (u.hint == ShaderLanguage::ShaderNode::Uniform::HINT_RANGE) { pi.hint = PROPERTY_HINT_RANGE; - pi.hint_string = rtos(u.hint_range[0]) + "," + rtos(u.hint_range[1]); + pi.hint_string = rtos(u.hint_range[0]) + "," + rtos(u.hint_range[1]) + "," + rtos(u.hint_range[2]); } } break; |