Explorar o código

extra assert

Former-commit-id: 1cdc3b127f254e2cb6645e3c5cc050ebcdb30135
Alec Jacobson %!s(int64=10) %!d(string=hai) anos
pai
achega
93b436e8f4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      include/igl/draw_point.cpp

+ 3 - 1
include/igl/draw_point.cpp

@@ -30,7 +30,9 @@ IGL_INLINE void igl::draw_point(
 
   float f;
   glGetFloatv(GL_POINT_SIZE_MAX,&f);
-  assert(requested_r<=0.5*f);
+  // THIS IS OVERZEALOUS on Mac OS X: OpenGL reports a smaller point size than
+  // possible.
+  //assert(requested_r<=0.5*f);
   double r = (requested_r<0.5*f?requested_r:0.5*f);
 
   //glDisable(GL_DEPTH_TEST);