1
0
Fork 0
forked from suyu/suyu

Merge pull request #2484 from ReinUsesLisp/triangle-fan

maxwell_to_gl: Add TriangleFan primitive topology
This commit is contained in:
Sebastian Valle 2019-05-19 08:53:29 -05:00 committed by GitHub
commit f9ad88f9d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,6 +126,8 @@ inline GLenum PrimitiveTopology(Maxwell::PrimitiveTopology topology) {
return GL_TRIANGLES;
case Maxwell::PrimitiveTopology::TriangleStrip:
return GL_TRIANGLE_STRIP;
case Maxwell::PrimitiveTopology::TriangleFan:
return GL_TRIANGLE_FAN;
default:
LOG_CRITICAL(Render_OpenGL, "Unimplemented topology={}", static_cast<u32>(topology));
UNREACHABLE();