From ce779c008233863e11860d89650efee3f45434cb Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Thu, 15 Jul 2010 13:29:31 +0000 Subject: [PATCH] added if(tm==TMPerWedge) glEnable(GL_TEXTURE_2D); on line 543 --- wrap/gl/trimesh.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index 59a2c7fd..e0d889c8 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -539,6 +539,9 @@ void DrawFill() glDisable(GL_TEXTURE_2D); } } + + if(tm==TMPerWedge) + glEnable(GL_TEXTURE_2D); if(tm==TMPerVert && !TMId.empty()) // in the case of per vertex tex coord we assume that we have a SINGLE texture. {