Don't assume writeable C strings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5508 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b19aff0084
commit
d18253fe33
|
@ -187,11 +187,11 @@ void Destroy()
|
|||
#endif
|
||||
}
|
||||
|
||||
void HandleCLError(cl_int error, char* str)
|
||||
void HandleCLError(cl_int error, const char* str)
|
||||
{
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
|
||||
char* name;
|
||||
const char* name;
|
||||
switch(error)
|
||||
{
|
||||
#define CL_ERROR(x) case (x): name = #x; break
|
||||
|
|
|
@ -64,7 +64,7 @@ void Destroy();
|
|||
cl_program CompileProgram(const char *Kernel);
|
||||
cl_kernel CompileKernel(cl_program program, const char *Function);
|
||||
|
||||
void HandleCLError(cl_int error, char* str = 0);
|
||||
void HandleCLError(cl_int error, const char* str = 0);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue