Skip to content

Commit

Permalink
Merge pull request #85972 from clayjohn/GL-vertex-attributes-2D
Browse files Browse the repository at this point in the history
Ensure that 2D meshes use a proper input mask
  • Loading branch information
YuriSizov authored Dec 11, 2023
2 parents b94eb58 + 777d6ae commit a9f444b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gles3/rasterizer_canvas_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ void RasterizerCanvasGLES3::_render_batch(Light *p_lights, uint32_t p_index) {
GLuint vertex_array_gl = 0;
GLuint index_array_gl = 0;

uint64_t input_mask = 0; // 2D meshes always use the same vertex format.
uint64_t input_mask = RS::ARRAY_FORMAT_VERTEX | RS::ARRAY_FORMAT_COLOR | RS::ARRAY_FORMAT_TEX_UV; // 2D meshes always use the same vertex format.
if (mesh_instance.is_valid()) {
mesh_storage->mesh_instance_surface_get_vertex_arrays_and_format(mesh_instance, j, input_mask, vertex_array_gl);
} else {
Expand Down

0 comments on commit a9f444b

Please sign in to comment.