Fixes for Win32 build.
This commit is contained in:
@@ -173,10 +173,9 @@ class TemplateIndexArray : public IndexArray, public std::vector<T>
|
||||
virtual void accept(unsigned int index,ValueVisitor& vv) { vv.apply( (*this)[index] ); }
|
||||
virtual void accept(unsigned int index,ConstValueVisitor& vv) const { vv.apply( (*this)[index] );}
|
||||
|
||||
virtual const GLvoid* getDataPointer() const { if (!std::vector<T>::empty()) return &front(); else return 0; }
|
||||
virtual const GLvoid* getDataPointer() const { if (!empty()) return &front(); else return 0; }
|
||||
virtual unsigned int getNumElements() const { return size(); }
|
||||
|
||||
virtual bool empty() const { return std::vector<T>::empty(); }
|
||||
virtual unsigned int index(unsigned int pos) const { return (*this)[pos]; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -372,7 +372,7 @@ void IndexedGeometry::drawImmediateMode(State& state)
|
||||
{
|
||||
if (texcoordPair.second.valid())
|
||||
{
|
||||
if (!texcoordPair.second->getNumElements()>0)
|
||||
if (texcoordPair.second->getNumElements()>0)
|
||||
{
|
||||
drawTexCoordList.push_back(new DrawMultiTexCoord(GL_TEXTURE0+unit,texcoordPair.first.get(),texcoordPair.second.get(),
|
||||
s_glMultiTexCoord1f,
|
||||
@@ -403,7 +403,7 @@ void IndexedGeometry::drawImmediateMode(State& state)
|
||||
{
|
||||
if (texcoordPair.second.valid())
|
||||
{
|
||||
if (!texcoordPair.second->getNumElements()>0)
|
||||
if (texcoordPair.second->getNumElements()>0)
|
||||
{
|
||||
drawTextCoord = new DrawTexCoord(texcoordPair.first.get(),texcoordPair.second.get());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user