Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54414

ANGLE generates invalid shaders for some locale's

    XMLWordPrintable

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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              sletta Gunnar Sletta
              kkohne Kai Köhne
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes