Cannot enable SampleBuffer
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.
This is my main function and output, just some additional information.
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.
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);
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.