Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. OpenGL + Macbook Pro
Forum Updated to NodeBB v4.3 + New Features

OpenGL + Macbook Pro

Scheduled Pinned Locked Moved Game Development
3 Posts 2 Posters 1.9k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    koplersky
    wrote on last edited by
    #1

    Hello, I'm trying to run an OpenGL program and it's not working.

    I have a Macbook Pro with Intel HD Graphics 3000, Mac OS X 10.8.4 and Qt 5.1.1.

    OpenGL Extensions Viewer tells me that shader language 1.5 is supported, but when I try to run I get "ERROR: 0:1: '' : version '150' is not supported" so my shaders are not compiled.

    I'm a completely newbie. How can I configure Qt to use GLSL 1.5?

    Thanks in advance.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #2

      Hi to use GLSL 1.50 on OS X you need to have an OpenGL 3.2 Core Profile context.

      Request this via QSurfaceFormat::setVersion() and setProfile() if using QOpenGLContext directly.

      Or if using QGLWidget use QGLFormat.

      HTH

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koplersky
        wrote on last edited by
        #3

        Thank you a lot!

        1 Reply Last reply
        0

        • Login

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