Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
158f39ec78
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
db345cb624
commit
7d0e892d36
@@ -68,8 +68,8 @@ SoPolygon::SoPolygon()
|
||||
|
||||
SO_NODE_ADD_FIELD(startIndex, (0));
|
||||
SO_NODE_ADD_FIELD(numVertices, (0));
|
||||
SO_NODE_ADD_FIELD(highlight, (FALSE));
|
||||
SO_NODE_ADD_FIELD(render, (TRUE));
|
||||
SO_NODE_ADD_FIELD(highlight, (false));
|
||||
SO_NODE_ADD_FIELD(render, (true));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,7 +86,7 @@ void SoPolygon::GLRender(SoGLRenderAction *action)
|
||||
if (!points) return;
|
||||
|
||||
SoMaterialBundle mb(action);
|
||||
SoTextureCoordinateBundle tb(action, TRUE, FALSE);
|
||||
SoTextureCoordinateBundle tb(action, true, false);
|
||||
SoLazyElement::setLightModel(state, SoLazyElement::BASE_COLOR);
|
||||
mb.sendFirst(); // make sure we have the correct material
|
||||
|
||||
|
||||
Reference in New Issue
Block a user