aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-17 18:16:30 +0100
committerAndreas Grois <andi@grois.info>2018-03-17 18:16:30 +0100
commite1e7d9fed39cb8fc281925960c71f7dc197e6568 (patch)
tree361a70e2daeed67310ecbe1bac2bbcbe5fc329ae
parentb05e87dc5004f5badc02508570ddc55f31b451cc (diff)
Seems vec2 needs 16 bytes on nVidia...
-rw-r--r--BuddhaTest/src/BuddhaTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp
index 354cdcb..95bd22f 100644
--- a/BuddhaTest/src/BuddhaTest.cpp
+++ b/BuddhaTest/src/BuddhaTest.cpp
@@ -128,7 +128,7 @@ int main(int argc, char * argv[])
GLuint stateBuffer;
glGenBuffers(1,&stateBuffer);
glBindBuffer(GL_SHADER_STORAGE_BUFFER,stateBuffer);
- glBufferData(GL_SHADER_STORAGE_BUFFER, 4*(5*workersPerFrame),nullptr,GL_DYNAMIC_COPY);
+ glBufferData(GL_SHADER_STORAGE_BUFFER, 4*(7*workersPerFrame),nullptr,GL_DYNAMIC_COPY);
glClearBufferData(GL_SHADER_STORAGE_BUFFER,GL_R8,GL_RED,GL_UNSIGNED_INT,nullptr);
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 5, stateBuffer);