Fix T45465

Easy one, we don't draw quads anymore. Also normal
didn't use polygon index
This commit is contained in:
Antonis Ryakiotakis 2015-07-17 13:24:01 +02:00
parent 1b8e0d03d4
commit c23d29c58e
Notes: blender-bot 2023-02-14 10:37:50 +01:00
Referenced by issue #45465, New viewport: modifier+matcap+edit mode = mess
1 changed files with 2 additions and 2 deletions

View File

@ -896,7 +896,7 @@ static void cdDM_drawMappedFacesGLSL(
if (do_draw)
DM_vertex_attributes_from_gpu(dm, &gattribs, &attribs);
glBegin(GL_QUADS);
glBegin(GL_TRIANGLES);
}
if (!do_draw) {
@ -917,7 +917,7 @@ static void cdDM_drawMappedFacesGLSL(
if (!smoothnormal) {
if (nors) {
glNormal3fv(nors[a]);
glNormal3fv(nors[lt->poly]);
}
else {
/* TODO ideally a normal layer should always be available */