mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 17:00:57 +01:00
Merge pull request #1154 from OatmealDome/topology-lines
maxwell_to_gl: Implement PrimitiveTopology::Lines
This commit is contained in:
commit
5abf71fe65
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ inline GLenum PrimitiveTopology(Maxwell::PrimitiveTopology topology) {
|
||||||
switch (topology) {
|
switch (topology) {
|
||||||
case Maxwell::PrimitiveTopology::Points:
|
case Maxwell::PrimitiveTopology::Points:
|
||||||
return GL_POINTS;
|
return GL_POINTS;
|
||||||
|
case Maxwell::PrimitiveTopology::Lines:
|
||||||
|
return GL_LINES;
|
||||||
case Maxwell::PrimitiveTopology::LineStrip:
|
case Maxwell::PrimitiveTopology::LineStrip:
|
||||||
return GL_LINE_STRIP;
|
return GL_LINE_STRIP;
|
||||||
case Maxwell::PrimitiveTopology::Triangles:
|
case Maxwell::PrimitiveTopology::Triangles:
|
||||||
|
|
Loading…
Reference in a new issue