Explorar o código

small bugfix

Former-commit-id: 4234f75a3f1dd73f7bf0a4f17fe799be688358eb
schuellc %!s(int64=10) %!d(string=hai) anos
pai
achega
3a61853600
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/igl/viewer/ViewerCore.cpp

+ 1 - 1
include/igl/viewer/ViewerCore.cpp

@@ -448,7 +448,7 @@ IGL_INLINE void igl::ViewerCore::draw_buffer(ViewerData& data,
   viewport = viewport_ori;
   
   // Copy back in the given Eigen matrices
-  GLubyte pixels[ x * y * 4 ];
+  GLubyte* pixels;
   glReadPixels
   (
    0, 0,