Pārlūkot izejas kodu

tutorial: remove dead code in 11_fractal.

legacy
Sam Hocevar sam pirms 12 gadiem
vecāks
revīzija
5008482e54
1 mainītis faili ar 1 papildinājumiem un 25 dzēšanām
  1. +1
    -25
      tutorial/11_fractal.cpp

+ 1
- 25
tutorial/11_fractal.cpp Parādīt failu

@@ -561,33 +561,9 @@ public:
g_d3ddevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_CW);
#elif !defined __CELLOS_LV2__ && !defined __ANDROID__
#else
//glEnableClientState(GL_VERTEX_ARRAY);
//glVertexPointer(2, GL_FLOAT, 0, vertices);
//glEnableClientState(GL_TEXTURE_COORD_ARRAY);
//glTexCoordPointer(2, GL_FLOAT, 0, texcoords);
#endif

#if defined _XBOX || defined USE_D3D9
g_d3ddevice->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 2);
#else
glDrawArrays(GL_TRIANGLES, 0, 6);
#endif

#if defined _XBOX || defined USE_D3D9

m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 2);
m_vdecl->Unbind();
#elif !defined __CELLOS_LV2__ && !defined __ANDROID__
//glDisableVertexAttribArray(m_vertexattrib);
//glDisableVertexAttribArray(m_texattrib);
//glBindBuffer(GL_ARRAY_BUFFER, 0);
#elif !defined __CELLOS_LV2__ && !defined __ANDROID__
/* Never used for now */
//glDisableVertexAttribArray(m_vertexattrib);
//glDisableVertexAttribArray(m_texattrib);
#else
//glDisableClientState(GL_VERTEX_ARRAY);
//glDisableClientState(GL_TEXTURE_COORD_ARRAY);
#endif
}

private:


Notiek ielāde…
Atcelt
Saglabāt