Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

GlDrawArray failes after e while



  • Hi to everyone,
    I am developing an application that allows the user to write and test shaders. The application lets you import an obj. What happened, is that if I import a mesh the first time is ok, the second time is ok, and maybe the third time crash, i think it depends on the size of the mesh, it seems to me that it keeps storing data. I debugged the program and I found aout the the crash occurs at glDrawArray:
    glDrawArrays(GL_QUADS,0,objVertexPos.size());
    all variables and arrays are cleaned everytime, so I think it's something regarding the GPU.
    Any suggestion?
    Thank you in advance.


Log in to reply