mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Ugly workaround for locale issue breaking HW transform for some people
This commit is contained in:
parent
51eec6a577
commit
1965775c5a
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,8 @@
|
|||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <locale.h>
|
||||
|
||||
#if defined(_WIN32) && defined(_DEBUG)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
@ -132,6 +134,10 @@ enum DoLightComputation {
|
|||
};
|
||||
|
||||
void GenerateVertexShader(int prim, char *buffer) {
|
||||
// Apparently, sprintf can output "," unless we do this, which is a disaster for this line later on:
|
||||
// WRITE(p, " worldpos = (u_world * vec4(worldpos * %f, 1.0)).xyz;\n", factor);
|
||||
setlocale( LC_ALL, "C" );
|
||||
|
||||
char *p = buffer;
|
||||
#if defined(USING_GLES2)
|
||||
WRITE(p, "precision highp float;\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue