Strange ATI vs Nvidia TRIANGLE_STRIP issue
Posted
by
chriscisco
on Stack Overflow
See other posts from Stack Overflow
or by chriscisco
Published on 2012-11-16T04:56:29Z
Indexed on
2012/11/16
4:59 UTC
Read the original article
Hit count: 136
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.
© Stack Overflow or respective owner