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

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about c++

Related posts about opengl