Przeglądaj źródła

small bugfix

Former-commit-id: 4234f75a3f1dd73f7bf0a4f17fe799be688358eb
schuellc 10 lat temu
rodzic
commit
3a61853600
1 zmienionych plików z 1 dodań i 1 usunięć
  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,