Changeset 1534


Ignore:
Timestamp:
Jun 28, 2012, 2:36:32 PM (8 years ago)
Author:
sam
Message:

tutorial: remove dead code in 11_fractal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/11_fractal.cpp

    r1524 r1534  
    562562#elif !defined __CELLOS_LV2__ && !defined __ANDROID__
    563563#else
    564         //glEnableClientState(GL_VERTEX_ARRAY);
    565         //glVertexPointer(2, GL_FLOAT, 0, vertices);
    566         //glEnableClientState(GL_TEXTURE_COORD_ARRAY);
    567         //glTexCoordPointer(2, GL_FLOAT, 0, texcoords);
    568 #endif
    569 
    570 #if defined _XBOX || defined USE_D3D9
    571         g_d3ddevice->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 2);
    572 #else
    573         glDrawArrays(GL_TRIANGLES, 0, 6);
    574 #endif
    575 
    576 #if defined _XBOX || defined USE_D3D9
    577 
     564#endif
     565        m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 2);
    578566        m_vdecl->Unbind();
    579 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
    580         //glDisableVertexAttribArray(m_vertexattrib);
    581         //glDisableVertexAttribArray(m_texattrib);
    582         //glBindBuffer(GL_ARRAY_BUFFER, 0);
    583 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
    584         /* Never used for now */
    585         //glDisableVertexAttribArray(m_vertexattrib);
    586         //glDisableVertexAttribArray(m_texattrib);
    587 #else
    588         //glDisableClientState(GL_VERTEX_ARRAY);
    589         //glDisableClientState(GL_TEXTURE_COORD_ARRAY);
    590 #endif
    591567    }
    592568
Note: See TracChangeset for help on using the changeset viewer.