forked from dolphin-emu/dolphin
fix compiling if opencl is not enabled at compile time
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4440 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@@ -130,6 +130,7 @@ void Destroy() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||||
void HandleCLError(cl_int error, char* str)
|
void HandleCLError(cl_int error, char* str)
|
||||||
{
|
{
|
||||||
char* name;
|
char* name;
|
||||||
@@ -191,5 +192,6 @@ void HandleCLError(cl_int error, char* str)
|
|||||||
PanicAlert("OpenCL error: %s %s (%d)", str, name, error);
|
PanicAlert("OpenCL error: %s %s (%d)", str, name, error);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@@ -60,8 +60,10 @@ void Destroy();
|
|||||||
|
|
||||||
cl_program CompileProgram(const char *Kernel);
|
cl_program CompileProgram(const char *Kernel);
|
||||||
cl_kernel CompileKernel(cl_program program, const char *Function);
|
cl_kernel CompileKernel(cl_program program, const char *Function);
|
||||||
void HandleCLError(cl_int error, char* str = 0);
|
|
||||||
|
|
||||||
|
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||||
|
void HandleCLError(cl_int error, char* str = 0);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user