diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index eb5a88ab9..779e8cd81 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -1043,7 +1043,7 @@ Geometry* osg::createTexturedQuadGeometry(const Vec3& corner,const Vec3& widthVe geom->setNormalArray(normals, osg::Array::BIND_OVERALL); -#if defined(OSG_GLES1_AVAILABLE) || !defined(OSG_GLES2_AVAILABLE) +#if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) DrawElementsUByte* elems = new DrawElementsUByte(PrimitiveSet::TRIANGLES); elems->push_back(0); elems->push_back(1);