Strange ATI vs Nvidia TRIANGLE_STRIP issue
- by chriscisco
I have this code, I am using a test for my Engine I am working on.
On My NVIDIA NVS 4200M it displays the GL_TRIANGLE_STRIP as expected.
On my ATI Radeon 5800 it appears to draw a Triangle.
shader.begin();
Matrix4<float> temp = getActiveCamera()->getProjectionMatrix() * getActiveCamera()->getObjectToWorld().fastInverse();
glUniformMatrix4fv(shader["mvp"], 1, GL_TRUE, temp.getArray());
glBegin(GL_TRIANGLE_STRIP);
glVertexAttrib3f(shader["colour"],0,1,0);
glVertexAttrib3f(shader["coord3d"],-.5,-.5,0);
glVertexAttrib3f(shader["colour"],1,1,0);
glVertexAttrib3f(shader["coord3d"],0.5,-.5,0);
glVertexAttrib3f(shader["colour"],1,0,1);
glVertexAttrib3f(shader["coord3d"],-.5,.5,0);
glVertexAttrib3f(shader["colour"],0,1,1);
glVertexAttrib3f(shader["coord3d"],.5,.5,0);
glEnd();
shader.end();
Here are what it actually looks like on my two computers.
https://www.dropbox.com/s/sgm2j978tx2ipnp/not%20working.png
https://www.dropbox.com/s/27idv0b8k0p4pcx/working.png