Browse Source

Make output buffer write only as per Diapolo's suggestion.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
23c01bc79c
  1. 2
      ocl.c

2
ocl.c

@ -726,7 +726,7 @@ built:
return NULL; return NULL;
} }
clState->outputBuffer = clCreateBuffer(clState->context, CL_MEM_READ_WRITE, BUFFERSIZE, NULL, &status); clState->outputBuffer = clCreateBuffer(clState->context, CL_MEM_WRITE_ONLY, BUFFERSIZE, NULL, &status);
if (status != CL_SUCCESS) { if (status != CL_SUCCESS) {
applog(LOG_ERR, "Error: clCreateBuffer (outputBuffer)"); applog(LOG_ERR, "Error: clCreateBuffer (outputBuffer)");
return NULL; return NULL;

Loading…
Cancel
Save