summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/opengl/cube/mainwidget.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/opengl/cube/mainwidget.cpp b/examples/opengl/cube/mainwidget.cpp
index 8c87de6736..5c1cd28b54 100644
--- a/examples/opengl/cube/mainwidget.cpp
+++ b/examples/opengl/cube/mainwidget.cpp
@@ -43,7 +43,6 @@
#include <QMouseEvent>
#include <math.h>
-#include <locale.h>
MainWidget::MainWidget(QWidget *parent) :
QGLWidget(parent),
@@ -126,9 +125,6 @@ void MainWidget::initializeGL()
//! [3]
void MainWidget::initShaders()
{
- // Override system locale until shaders are compiled
- setlocale(LC_NUMERIC, "C");
-
// Compile vertex shader
if (!program.addShaderFromSourceFile(QGLShader::Vertex, ":/vshader.glsl"))
close();
@@ -144,9 +140,6 @@ void MainWidget::initShaders()
// Bind shader pipeline for use
if (!program.bind())
close();
-
- // Restore system locale
- setlocale(LC_ALL, "");
}
//! [3]