Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Why can't I use OpenGL ES 3.0 in Qt?
QtWS25 Last Chance

Why can't I use OpenGL ES 3.0 in Qt?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
opengl esopengl es 3.0
2 Posts 1 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stefan Monov76
    wrote on 2 Nov 2016, 16:56 last edited by
    #1

    I set a QSurfaceFormat on my window, and this surface format has "3.0" set as its GL version number. Also, in main() I enable OpenGL ES mode, like this:

    QGuiApplication::setAttribute(Qt::AA_UseOpenGLES);
    

    This means I'm requesting a GL ES 3.0 context.

    The ANGLE docs say (in a table near the beginning) that GL ES 3.0 -> D3D 11 API translation support is implemented. And my system supports D3D 11 according to dxdiag.exe.

    But when I launch my app, which contains this QML code...

    Text {
        text: OpenGLInfo.majorVersion + "." + OpenGLInfo.minorVersion
    }
    

    ... I see "2.0" is displayed. Also, using the method I described here, I've determined that the maximal supported shading language version on my PC is "100" aka 1.0.

    At the same time, from this Qt blog post I know that Qt supports GL ES 3.0 apps.

    So why can't I use OpenGL ES 3.0 in Qt?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Stefan Monov76
      wrote on 3 Nov 2016, 15:25 last edited by Stefan Monov76 11 Mar 2016, 15:25
      #2

      I got a working solution (in comments) here.

      1 Reply Last reply
      1

      2/2

      3 Nov 2016, 15:25

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved