Point,Line,Triangle -> PointList,LineList,TriangleList

This commit is contained in:
Austin Eng
2017-07-26 18:10:44 -04:00
committed by Austin Eng
parent c2def461a1
commit 439d963ccd
7 changed files with 31 additions and 31 deletions

View File

@@ -24,13 +24,13 @@ namespace opengl {
namespace {
GLenum GLPrimitiveTopology(nxt::PrimitiveTopology primitiveTopology) {
switch (primitiveTopology) {
case nxt::PrimitiveTopology::Point:
case nxt::PrimitiveTopology::PointList:
return GL_POINTS;
case nxt::PrimitiveTopology::Line:
case nxt::PrimitiveTopology::LineList:
return GL_LINES;
case nxt::PrimitiveTopology::LineStrip:
return GL_LINE_STRIP;
case nxt::PrimitiveTopology::Triangle:
case nxt::PrimitiveTopology::TriangleList:
return GL_TRIANGLES;
case nxt::PrimitiveTopology::TriangleStrip:
return GL_TRIANGLE_STRIP;