Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot enable SampleBuffer

Cannot enable SampleBuffer

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.7k 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.
  • D Offline
    D Offline
    DanqueDynasty
    wrote on 4 Feb 2013, 07:00 last edited by
    #1

    I followed writing the code as states in this tutorial : http://qt-project.org/wiki/How_to_use_OpenGL_Core_Profile_with_Qt

    I have found two errors in my build, and at this point I am hoping that it is all hardware errors. The two errors I get are that "the program cannot enable sample buffers" and "cannot link shaders." I guess some system specs will be useful.

    Computer: Toshiba Qosmio X775-Q7272
    Graphics card : nVidia GTX 560m
    Processor: Intel Core i7-2630QM
    Qt version: 5.0.1 minGW

    Thank you in advance for any possible solutions :D.

    Swing Innovations: http://swinginnovations.com/

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DanqueDynasty
      wrote on 5 Feb 2013, 01:40 last edited by
      #2

      !http://imageshack.us/photo/my-images/259/thisisackward.png/()!

      This is my main function and output, just some additional information.

      Swing Innovations: http://swinginnovations.com/

      1 Reply Last reply
      0
      • J Offline
        J Offline
        john_god
        wrote on 5 Feb 2013, 02:31 last edited by
        #3

        From "here":http://www.geforce.com/hardware/desktop-gpus/geforce-gtx-560m/specifications your graphic card should support OpenGL 4.1 so it's good to go with that example. The first error is not a problem either. Does the addShaderFromSourceFile(...) return true ? Have you added the shaders to the the qrc file ? I'm guessing it's a error related with the path.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DanqueDynasty
          wrote on 5 Feb 2013, 03:20 last edited by
          #4

          I updated my graphics card. But to no avail. It appears its constantly defaulting to using OpenGL ES 2.0, regardless if I invoke glformat.setVersion(3, 3);

          Swing Innovations: http://swinginnovations.com/

          1 Reply Last reply
          0
          • J Offline
            J Offline
            john_god
            wrote on 5 Feb 2013, 03:53 last edited by
            #5

            Qt 5, by default uses the Angle library, that works as OpenGL ES and translates it under the wood to DirectX calls. That way it avoids the lack of Windows support for recent OpenGL versions, wich causes problems with less experienced users that dont know how to update their drivers. You have to use OpenGL ES calls, or compile Qt5 yourself with a flag (if memory doesnt fail me, something like -Opengl-desktop).
            There are already discussion about this in the forum. Also see this "thread":http://qt-project.org/forums/viewthread/23015/, I was able to compile that example for use in mobile with OpenGL ES, that allows for more portability.

            1 Reply Last reply
            0

            1/5

            4 Feb 2013, 07:00

            • Login

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