citra-emu
/
citra
Archived
1
0
Fork 0

Merge pull request #1467 from LittleWhite-tb/bug-shader-object

Set the appropriate locale to get float conversion working using to_string
This commit is contained in:
bunnei 2016-03-07 20:23:48 -05:00
commit b12a0b753f
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include <clocale>
#include <thread>
#include <QDesktopWidget>
@ -563,6 +564,9 @@ int main(int argc, char* argv[]) {
QApplication::setAttribute(Qt::AA_X11InitThreads);
QApplication app(argc, argv);
// Qt changes the locale and causes issues in float conversion using std::to_string() when generating shaders
setlocale(LC_ALL, "C");
GMainWindow main_window;
// After settings have been loaded by GMainWindow, apply the filter
log_filter.ParseFilterString(Settings::values.log_filter);