Hi forum,

Check the following code

Code :
cl_mem buffer;

Is the above variable automatically initialized to NULL unless i do the following :

Code :
cl_mem buffer = NULL;

If i release a memory object as follows:

Code :
clReleaseMemObject(buffer);

will the buffer again initialized to NULL ?


Thanks
Sajjad