GL_QUAD_STRIP -> GL_TRIANGLE_STRIP

pull/703/head
Hleb Valoshka 2020-04-17 20:44:15 +03:00
parent a7776ccfff
commit 97a2ae6330
2 changed files with 2 additions and 2 deletions

View File

@ -805,7 +805,7 @@ void LODSphereMesh::renderSection(int phi0, int theta0, int extent,
unsigned short* indexBase = useVertexBuffers ? (unsigned short*) nullptr : indices;
for (int i = 0; i < nRings; i++)
{
glDrawElements(GL_QUAD_STRIP,
glDrawElements(GL_TRIANGLE_STRIP,
(nSlices + 1) * 2,
GL_UNSIGNED_SHORT,
indexBase + (nSlices + 1) * 2 * i);

View File

@ -3056,7 +3056,7 @@ void Renderer::renderEllipsoidAtmosphere(const Atmosphere& atmosphere,
prog->use();
for (int i = 0; i < nRings; i++)
{
glDrawElements(GL_QUAD_STRIP,
glDrawElements(GL_TRIANGLE_STRIP,
(nSlices + 1) * 2,
GL_UNSIGNED_INT,
&skyIndices[(nSlices + 1) * 2 * i]);