@@ -1287,7 +1287,7 @@ void RasterizerCanvasGLES3::_render_batch(Light *p_lights, uint32_t p_index, Ren
12871287 uint32_t range_start = state.canvas_instance_batches [p_index].start * sizeof (InstanceData);
12881288 _enable_attributes (range_start, false );
12891289
1290- glDrawElementsInstanced (GL_TRIANGLES, 6 , GL_UNSIGNED_INT, 0 , state.canvas_instance_batches [p_index].instance_count );
1290+ glDrawElementsInstanced (GL_TRIANGLES, 6 , GL_UNSIGNED_INT, nullptr , state.canvas_instance_batches [p_index].instance_count );
12911291 glBindVertexArray (0 );
12921292
12931293 if (r_render_info) {
@@ -1490,7 +1490,7 @@ void RasterizerCanvasGLES3::_render_batch(Light *p_lights, uint32_t p_index, Ren
14901490 uint32_t vertex_count = mesh_storage->mesh_surface_get_vertices_drawn_count (surface);
14911491
14921492 if (use_index_buffer) {
1493- glDrawElementsInstanced (primitive_gl, vertex_count, mesh_storage->mesh_surface_get_index_type (surface), 0 , instance_count);
1493+ glDrawElementsInstanced (primitive_gl, vertex_count, mesh_storage->mesh_surface_get_index_type (surface), nullptr , instance_count);
14941494 } else {
14951495 glDrawArraysInstanced (primitive_gl, 0 , vertex_count, instance_count);
14961496 }
@@ -1701,7 +1701,7 @@ void RasterizerCanvasGLES3::light_update_shadow(RID p_rid, int p_shadow_index, c
17011701 }
17021702
17031703 glBindVertexArray (co->vertex_array );
1704- glDrawElements (GL_TRIANGLES, 3 * co->line_point_count , GL_UNSIGNED_SHORT, 0 );
1704+ glDrawElements (GL_TRIANGLES, 3 * co->line_point_count , GL_UNSIGNED_SHORT, nullptr );
17051705
17061706 instance = instance->next ;
17071707 }
@@ -1804,7 +1804,7 @@ void RasterizerCanvasGLES3::light_update_directional_shadow(RID p_rid, int p_sha
18041804 }
18051805
18061806 glBindVertexArray (co->vertex_array );
1807- glDrawElements (GL_TRIANGLES, 3 * co->line_point_count , GL_UNSIGNED_SHORT, 0 );
1807+ glDrawElements (GL_TRIANGLES, 3 * co->line_point_count , GL_UNSIGNED_SHORT, nullptr );
18081808
18091809 instance = instance->next ;
18101810 }
@@ -1923,7 +1923,7 @@ void RasterizerCanvasGLES3::render_sdf(RID p_render_target, LightOccluderInstanc
19231923 shadow_render.shader .version_set_uniform (CanvasOcclusionShaderGLES3::MODELVIEW2, modelview.columns [0 ][1 ], modelview.columns [1 ][1 ], 0 , modelview.columns [2 ][1 ], shadow_render.shader_version , variant);
19241924
19251925 glBindVertexArray (oc->sdf_vertex_array );
1926- glDrawElements (oc->sdf_is_lines ? GL_LINES : GL_TRIANGLES, oc->sdf_index_count , GL_UNSIGNED_INT, 0 );
1926+ glDrawElements (oc->sdf_is_lines ? GL_LINES : GL_TRIANGLES, oc->sdf_index_count , GL_UNSIGNED_INT, nullptr );
19271927
19281928 instance = instance->next ;
19291929 }
0 commit comments