Browse Source

small bugfix

Former-commit-id: 4234f75a3f1dd73f7bf0a4f17fe799be688358eb
schuellc 10 years ago
parent
commit
3a61853600
1 changed files with 1 additions and 1 deletions
  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,