[Solved] QGLShader, Program completely crashes



  • Hello guys,

    I'm trying to create a simulation program which should demonstrate the orbits of the planets in the heliocentric and geocentric models.

    However, I'm stuck at the beginning. I have implemented everything correctly so far, at least, I didn't have any problems and I could already see changes in my window (QWindow).
    The problems came when I tried to implement a loader-function for the vertex and fragment shaders.

    I guess the code itself is right because I've found it on the internet and it doesn't give me any error, however, I am not able to create a QGLShader-Object.
    Whenever I try to create it as follows, the program simply crashes. No error, no further message.
    @m_VertexShader.reset(new QGLShader(QGLShader::Vertex));@

    I even tried it without the QScopedPointers but same problem.

    It would be easier if it was a error in the code but I've absolutly no idea what's going wrong...
    If you need more of my code or more details about how I've implemented the rest of the program, just tell me :)
    I don't really know if it's important for this...

    I'm using Qt 5.3.0 x64 MSVC 2013



  • Why use QGL*? Try use QOpenGL*.



  • Didn't even know both ways existed :o
    But thanks, it works now :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.