Fix #120549: Broken triangles in viewport with multiple materials
commit5c10f9fcb3365e184b84f305a587de0dafeac413
authorHans Goudey <hans@blender.org>
Fri, 12 Apr 2024 16:38:19 +0000 (12 12:38 -0400)
committerHans Goudey <hans@blender.org>
Fri, 12 Apr 2024 16:38:25 +0000 (12 12:38 -0400)
tree7daf459941d73bba5ce443ed79b9cb8525acaf40
parentfae60893c7ca91b0a960d5dd26df5bcbec0f46d5
Fix #120549: Broken triangles in viewport with multiple materials

Error in 0f46e02310c98e212f50dc0af9a46a76c844358a

The maximum index in the triangles index buffer was set incorrectly,
causing the GPU code to switch to using 16 bit integers when it shouldn't.
source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc