summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2011-01-06 01:11:32 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2011-01-06 01:11:32 +0000
commit95b6d3f4453fa3fa02fffcb889cb8f5018a24263 (patch)
tree28da8077beda42bf32f3c13df1f7873b20637828 /Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
parent5ca3adde3c30d4f0563c425282f24450c7791859 (diff)
Kill HAVE_OPENCL.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6756 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp b/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
index 0340952733..cacfcdf47d 100644
--- a/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
+++ b/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
@@ -86,7 +86,6 @@ cl_mem g_clsrc, g_cldst; // texture buffer memory objects
void TexDecoder_OpenCL_Initialize()
{
-#if defined(HAVE_OPENCL) && HAVE_OPENCL
if(!g_Inited)
{
if(!OpenCL::Initialize())
@@ -240,12 +239,10 @@ void TexDecoder_OpenCL_Initialize()
g_Inited = true;
}
-#endif
}
void TexDecoder_OpenCL_Shutdown()
{
-#if defined(HAVE_OPENCL) && HAVE_OPENCL && !defined(DEBUG_OPENCL)
if (g_program)
clReleaseProgram(g_program);
@@ -264,12 +261,10 @@ void TexDecoder_OpenCL_Shutdown()
clReleaseMemObject(g_cldst);
g_Inited = false;
-#endif
}
PC_TexFormat TexDecoder_Decode_OpenCL(u8 *dst, const u8 *src, int width, int height, int texformat, int tlutaddr, int tlutfmt, bool rgba)
{
-#if defined(HAVE_OPENCL) && HAVE_OPENCL
cl_int err;
sDecoderParameter& decoder = rgba ? g_DecodeParametersRGBA[texformat] : g_DecodeParametersNative[texformat];
if(!g_Inited || !decoder.name || !decoder.kernel || decoder.format == PC_TEX_FMT_NONE)
@@ -310,7 +305,4 @@ PC_TexFormat TexDecoder_Decode_OpenCL(u8 *dst, const u8 *src, int width, int hei
#endif
return decoder.format;
-#else
- return PC_TEX_FMT_NONE;
-#endif
}