freebsd-ports/graphics/libx3dtk/files/patch-src-functionalities-GL-GL_Renderer-GL_RendererShapeVisitor.cpp
Martin Wilke 9f56acee99 - Fix build with gcc 4.1
PR:		ports/106834
Submitted by:	German Tischler <tanis@gaspode.franken.de> (maintainer)
2006-12-21 19:33:08 +00:00

19 lines
853 B
C++

*** src/functionalities/GL/GL_Renderer/GL_RendererShapeVisitor.cpp.orig Sat Dec 16 15:45:37 2006
--- src/functionalities/GL/GL_Renderer/GL_RendererShapeVisitor.cpp Sat Dec 16 15:47:15 2006
***************
*** 19,25 ****
void RendererShapeVisitor::enterMaterial(Material *M)
{
! RendererStateVariables *stateVariables = Singleton<RendererStateVariables>::getInstance();
glMaterialfv(GL_FRONT, GL_DIFFUSE, &M->getDiffuseColor().front());
glMaterialfv(GL_FRONT, GL_AMBIENT, &M->getAmbientColor().front());
--- 19,25 ----
void RendererShapeVisitor::enterMaterial(Material *M)
{
! /* RendererStateVariables *stateVariables = */ Singleton<RendererStateVariables>::getInstance();
glMaterialfv(GL_FRONT, GL_DIFFUSE, &M->getDiffuseColor().front());
glMaterialfv(GL_FRONT, GL_AMBIENT, &M->getAmbientColor().front());