فهرست منبع

extra assert

Former-commit-id: 1cdc3b127f254e2cb6645e3c5cc050ebcdb30135
Alec Jacobson 10 سال پیش
والد
کامیت
93b436e8f4
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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);