summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureDecoder_Generic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder_Generic.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureDecoder_Generic.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureDecoder_Generic.cpp b/Source/Core/VideoCommon/Src/TextureDecoder_Generic.cpp
index a8c34cfac7..4b24409ce3 100644
--- a/Source/Core/VideoCommon/Src/TextureDecoder_Generic.cpp
+++ b/Source/Core/VideoCommon/Src/TextureDecoder_Generic.cpp
@@ -20,8 +20,6 @@
#include "CPUDetect.h"
#include "TextureDecoder.h"
-#include "OpenCL.h"
-#include "OpenCL/TextureDecoder_OpenCL.h"
#include "VideoConfig.h"
#include "LookUpTables.h"
@@ -1060,15 +1058,12 @@ void TexDecoder_SetTexFmtOverlayOptions(bool enable, bool center)
PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, int texformat, int tlutaddr, int tlutfmt,bool rgbaOnly)
{
- PC_TexFormat retval = TexDecoder_Decode_OpenCL(dst, src,
- width, height, texformat, tlutaddr, tlutfmt, rgbaOnly);
- if (retval == PC_TEX_FMT_NONE)
- retval = rgbaOnly ? TexDecoder_Decode_RGBA((u32*)dst, src,
- width, height, texformat, tlutaddr, tlutfmt)
- : TexDecoder_Decode_real(dst, src,
- width, height, texformat, tlutaddr, tlutfmt);
-
- if ((!TexFmt_Overlay_Enable)|| (retval == PC_TEX_FMT_NONE))
+ PC_TexFormat retval = rgbaOnly ? TexDecoder_Decode_RGBA((u32*)dst, src,
+ width, height, texformat, tlutaddr, tlutfmt)
+ : TexDecoder_Decode_real(dst, src,
+ width, height, texformat, tlutaddr, tlutfmt);
+
+ if ((!TexFmt_Overlay_Enable) || (retval == PC_TEX_FMT_NONE))
return retval;
int w = min(width, 40);