aboutsummaryrefslogtreecommitdiff
path: root/src/buffer/vertex/fluid_cell_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer/vertex/fluid_cell_buffer.cc')
-rw-r--r--src/buffer/vertex/fluid_cell_buffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer/vertex/fluid_cell_buffer.cc b/src/buffer/vertex/fluid_cell_buffer.cc
index 5056569..c602e0c 100644
--- a/src/buffer/vertex/fluid_cell_buffer.cc
+++ b/src/buffer/vertex/fluid_cell_buffer.cc
@@ -1,7 +1,7 @@
#include "fluid_cell_buffer.h"
-FluidCellBuffer::FluidCellBuffer():
- _data(3*128*128, GLfloat{}) {
+FluidCellBuffer::FluidCellBuffer(GLuint nX, GLuint nY):
+ _data(3*nX*nY, GLfloat{}) {
glGenVertexArrays(1, &_array);
glGenBuffers(1, &_buffer);