diff options
| author | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2011-03-05 15:03:36 +0000 |
|---|---|---|
| committer | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2011-03-05 15:03:36 +0000 |
| commit | 5eb99178dd6f9d500c6219b947ae0d376d139d5e (patch) | |
| tree | da999d34144f398ef9d756d9749232050ba1894d /Source/Core/VideoCommon/Src/TextureDecoder.cpp | |
| parent | f20731b1c3995762c37f33b27dacf8b82fcb93c0 (diff) | |
more fixes for my openmp commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7299 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureDecoder.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index 0a062236ad..fdcca06d73 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -27,7 +27,9 @@ #include "LookUpTables.h" #include <cmath> +#ifdef _OPENMP #include <omp.h> +#endif #if _M_SSE >= 0x401 #include <smmintrin.h> #include <emmintrin.h> @@ -741,7 +743,7 @@ PC_TexFormat TexDecoder_Decode_real(u8 *dst, const u8 *src, int width, int heigh for (int x = 0, yStep = (y / 4) * Wsteps8; x < width; x += 8, yStep++) for (int iy = 0, xStep = 4 * yStep; iy < 4; iy++, xStep++) { - ((u64*)dst + (y + iy)*width+x)[0] = ((u64*)(src + 8 * xStep))[0]; + ((u64*)(dst + (y + iy) * width + x))[0] = ((u64*)(src + 8 * xStep))[0]; } } return PC_TEX_FMT_I8; |
