Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-07-17 14:24:01 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-07-17 14:27:46 +0300
commitc23d29c58e8cc2aae42bd647fbc42cff982354d6 (patch)
tree7a7c4f227bc09b454aee63b352fd94d45e2a9c1c /source
parent1b8e0d03d413a54ceb7d6397c696b59bb7c6f91b (diff)
Fix T45465
Easy one, we don't draw quads anymore. Also normal didn't use polygon index
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/cdderivedmesh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c
index 69e69bf1b92..4820514b314 100644
--- a/source/blender/blenkernel/intern/cdderivedmesh.c
+++ b/source/blender/blenkernel/intern/cdderivedmesh.c
@@ -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 */