mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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:
parent
094c73a080
commit
d40ce3f1e5
@ -130,6 +130,7 @@ void Destroy() {
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
void HandleCLError(cl_int error, char* str)
|
||||
{
|
||||
char* name;
|
||||
@ -191,5 +192,6 @@ void HandleCLError(cl_int error, char* str)
|
||||
PanicAlert("OpenCL error: %s %s (%d)", str, name, error);
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
};
|
||||
|
@ -60,8 +60,10 @@ 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);
|
||||
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
void HandleCLError(cl_int error, char* str = 0);
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user