1
0
Fork 0
forked from suyu/suyu

maxwell_to_gl: Implement PrimitiveTopology::Points.

- Used by Super Mario Odyssey (in game).
This commit is contained in:
bunnei 2018-08-08 22:16:27 -04:00
parent 25ba4d1b68
commit 06d0b96ca9

View file

@ -85,6 +85,8 @@ inline GLenum IndexFormat(Maxwell::IndexFormat index_format) {
inline GLenum PrimitiveTopology(Maxwell::PrimitiveTopology topology) { inline GLenum PrimitiveTopology(Maxwell::PrimitiveTopology topology) {
switch (topology) { switch (topology) {
case Maxwell::PrimitiveTopology::Points:
return GL_POINTS;
case Maxwell::PrimitiveTopology::Triangles: case Maxwell::PrimitiveTopology::Triangles:
return GL_TRIANGLES; return GL_TRIANGLES;
case Maxwell::PrimitiveTopology::TriangleStrip: case Maxwell::PrimitiveTopology::TriangleStrip: