OpenGL Renderer:

- Fix compiling for Linux/GCC. (Regressions from r5359 and r5372. Addresses bug #1541.)
This commit is contained in:
rogerman 2016-03-12 18:45:37 +00:00
parent 344290283a
commit 07d9613295
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include "common.h"
#include "debug.h"
@ -972,7 +973,7 @@ Render3DError OpenGLRenderer::_FlushFramebufferConvertOnCPU(const FragmentColor
_mm_store_si128((__m128i *)(dstRGBA6665 + iw), color6665);
// Convert to RGBA5551
__m128 color5551 = srcColor;
__m128i color5551 = srcColor;
__m128i b = _mm_and_si128(color5551, _mm_set1_epi32(0x000000F8)); // Read from R
b = _mm_slli_epi32(b, 7); // Shift to B

View File

@ -21,6 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include "common.h"
#include "debug.h"