Ugly workaround for locale issue breaking HW transform for some people

This commit is contained in:
Henrik Rydgard 2013-04-24 23:29:19 +02:00
parent 51eec6a577
commit 1965775c5a

View file

@ -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");