diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-10-07 03:05:06 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-10-07 03:51:31 +0300 |
commit | fe654a93c7ecdc18089730ad62a15e6b7571ba11 (patch) | |
tree | 12bd33639392f941f916153b04fa5169ec725c4e /source/blender/gpu/gawain/immediate.c | |
parent | e01b1eac8482862e691ff42cebe6ccf71eee0e88 (diff) |
Gawain: allow strips of 1 line, fans of 1 triangle
My initial tests were stricter than necessary, and blocked some valid uses. Fixed!
Diffstat (limited to 'source/blender/gpu/gawain/immediate.c')
-rw-r--r-- | source/blender/gpu/gawain/immediate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/gawain/immediate.c b/source/blender/gpu/gawain/immediate.c index e0d14906737..b7b3083166e 100644 --- a/source/blender/gpu/gawain/immediate.c +++ b/source/blender/gpu/gawain/immediate.c @@ -133,12 +133,12 @@ static bool vertex_count_makes_sense_for_primitive(unsigned vertex_ct, GLenum pr return vertex_ct % 2 == 0; case GL_LINE_STRIP: case GL_LINE_LOOP: - return vertex_ct > 2; // otherwise why bother? + return vertex_ct >= 2; case GL_TRIANGLES: return vertex_ct % 3 == 0; case GL_TRIANGLE_STRIP: case GL_TRIANGLE_FAN: - return vertex_ct > 3; // otherwise why bother? + return vertex_ct >= 3; #ifdef WITH_GL_PROFILE_COMPAT case GL_QUADS: return vertex_ct % 4 == 0; |