I am getting a seg fault in the following line, while using an AMD 5700XT:
glDrawArraysInstanced(GL_PATCHES, 0, static_cast <GLsizei>(4), static_cast <GLsizei>(renderDepth));
However, if i change it to:
glDrawArraysInstanced(GL_TRIANGLES, 0, static_cast <GLsizei>(4), static_cast <GLsizei>(renderDepth));
I have also set the required patches param before rendering:
It runs without any problems (obviously i dont get the expected rendering result but also no crashes).
I have tested this on 3 different GPUs:
Nvidia 940m - Works
AMD R9 280x - Works
AMD 5700XT - Seg fault.
I have checked everything (VAO, attribs, sizes of the buffers, any debug messages/ linking errors) and everything seems correct to me. Also i used the same code (and GL version) for all the cards and only the 5700XT gives me trouble.