mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Build fix: Android NDK doesn't support any locale switching.
Also, Mac OS X doesn't support DX9.
This commit is contained in:
parent
fc7099a905
commit
9594cac42c
4 changed files with 14 additions and 5 deletions
|
@ -5,9 +5,6 @@
|
|||
#include <map>
|
||||
#include <set>
|
||||
#include <locale.h>
|
||||
#ifdef __APPLE__
|
||||
#include <xlocale.h>
|
||||
#endif
|
||||
|
||||
#include "Common.h"
|
||||
#include "Hash.h"
|
||||
|
@ -219,7 +216,7 @@ static LPDIRECT3DPIXELSHADER9 CreateCopyShader(int copyMatrixType, int depthConv
|
|||
WRITE(p, "}\n");
|
||||
if (text[sizeof(text) - 1] != 0x7C)
|
||||
PanicAlert("PixelShaderCache copy shader generator - buffer too small, canary has been eaten!");
|
||||
|
||||
|
||||
uselocale(old_locale); // restore locale
|
||||
freelocale(locale);
|
||||
return D3D::CompileAndCreatePixelShader(text, (int)strlen(text));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue