summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--balls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/balls.c b/balls.c
index 8ffb872..b6cde46 100644
--- a/balls.c
+++ b/balls.c
@@ -417,7 +417,7 @@ void
configSharedData(void) {
int err;
- vertexBuf = clCreateFromGLBuffer(context, CL_MEM_WRITE_ONLY, vertexVBO, &err);
+ vertexGpuBuf = clCreateFromGLBuffer(gpuContext, CL_MEM_WRITE_ONLY, vertexVBO, &err);
if (err < 0)
sysfatal("Failed to create buffer object from VBO.\n");
}