浏览代码

small bugfix

Former-commit-id: 4234f75a3f1dd73f7bf0a4f17fe799be688358eb
schuellc 10 年之前
父节点
当前提交
3a61853600
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,