Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.6.1, 5.7.0
-
None
-
Windows 10, MSVC 2015 SP2 32 bit
Description
Setting some global std::locale's let the angle backend generate invalid shaders.
How to reproduce
Open e.g. examples/opengl/hellowindow/hellowindow.pro
Add following lines to start of main.cpp:
+ #include <locale> + int main(int argc, char *argv[]) { + std::locale loc("de-DE"); + std::locale::global(loc);
Make sure angle is used (QT_OPENGL=angle for -opengl=dynamic builds)
Results
No OpenGL content shows up. In the debug log there are lots of warnings like
QOpenGLShader::link: "(44,29-56): error X3014: incorrect number of arguments to numeric-type constructorWarning: D3D shader compilation failed with default flags Retrying with skip validation.(44,29-56): error X3014: incorrect number of arguments to numeric-type constructorWarning: D3D shader compilation failed with skip validation flags Retrying with skip optimization.(44,29-56): error X3014: incorrect number of arguments to numeric-type constructorWarning: D3D shader compilation failed with skip optimization flagsFailed to create D3D shaders"
Attachments
Issue Links
- resulted from
-
QTBUG-54397 Webengine renders black screen when locale is set (ANGLE)
-
- Closed
-