mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
GLES2: Fix typo in project setting
It used a different name than the equivalent GLES3 parameter.
This commit is contained in:
parent
fadaeb06c0
commit
72f501de13
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user