summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-01-15 13:26:47 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-01-15 13:26:54 +0100
commit72f501de13dc081d798f6124ce6143e27c9cd111 (patch)
tree05fa12b954c504fa277b628e630462ff56a5e7ad
parentfadaeb06c0286c777adccc372730d8790c159cde (diff)
GLES2: Fix typo in project setting
It used a different name than the equivalent GLES3 parameter.
-rw-r--r--doc/classes/AnimationNodeBlendSpace2D.xml6
-rw-r--r--drivers/gles2/rasterizer_canvas_gles2.cpp4
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/classes/AnimationNodeBlendSpace2D.xml b/doc/classes/AnimationNodeBlendSpace2D.xml
index 55e27fc331..b205c01468 100644
--- a/doc/classes/AnimationNodeBlendSpace2D.xml
+++ b/doc/classes/AnimationNodeBlendSpace2D.xml
@@ -126,6 +126,12 @@
<member name="y_label" type="String" setter="set_y_label" getter="get_y_label">
</member>
</members>
+ <signals>
+ <signal name="triangles_updated">
+ <description>
+ </description>
+ </signal>
+ </signals>
<constants>
<constant name="BLEND_MODE_INTERPOLATED" value="0" enum="BlendMode">
</constant>
diff --git a/drivers/gles2/rasterizer_canvas_gles2.cpp b/drivers/gles2/rasterizer_canvas_gles2.cpp
index 6d1c636f42..14bd71c6eb 100644
--- a/drivers/gles2/rasterizer_canvas_gles2.cpp
+++ b/drivers/gles2/rasterizer_canvas_gles2.cpp
@@ -1826,8 +1826,8 @@ void RasterizerCanvasGLES2::initialize() {
glBindBuffer(GL_ARRAY_BUFFER, 0);
- uint32_t index_size = GLOBAL_DEF("rendering/limits/buffers/canvas_polygon_index_size_kb", 128);
- ProjectSettings::get_singleton()->set_custom_property_info("rendering/limits/buffers/canvas_polygon_index_size_kb", PropertyInfo(Variant::INT, "rendering/limits/buffers/canvas_polygon_index_size_kb", PROPERTY_HINT_RANGE, "0,256,1,or_greater"));
+ uint32_t index_size = GLOBAL_DEF("rendering/limits/buffers/canvas_polygon_index_buffer_size_kb", 128);
+ ProjectSettings::get_singleton()->set_custom_property_info("rendering/limits/buffers/canvas_polygon_index_buffer_size_kb", PropertyInfo(Variant::INT, "rendering/limits/buffers/canvas_polygon_index_buffer_size_kb", PROPERTY_HINT_RANGE, "0,256,1,or_greater"));
index_size *= 1024; // kb
glGenBuffers(1, &data.polygon_index_buffer);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, data.polygon_index_buffer);