Merge pull request #1154 from OatmealDome/topology-lines

maxwell_to_gl: Implement PrimitiveTopology::Lines
This commit is contained in:
bunnei 2018-08-22 01:08:34 -04:00 committed by GitHub
commit cd6e3b910d

View file

@ -107,6 +107,8 @@ inline GLenum PrimitiveTopology(Maxwell::PrimitiveTopology topology) {
switch (topology) {
case Maxwell::PrimitiveTopology::Points:
return GL_POINTS;
case Maxwell::PrimitiveTopology::Lines:
return GL_LINES;
case Maxwell::PrimitiveTopology::LineStrip:
return GL_LINE_STRIP;
case Maxwell::PrimitiveTopology::Triangles: