diff options
| author | aura <nw@moneybot.cc> | 2026-03-10 05:34:22 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-10 05:34:22 +0100 |
| commit | 4d83331b3fbeaa16eeb360c06f9f1ffc41a9326f (patch) | |
| tree | 77f7ba2ff78e1aa02e953801d06ce713ee08dcf9 /src/render | |
| parent | 30151d75dddd651faa1b27148a052ced7d0f190a (diff) | |
handle drawing world in 3dview better
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/gl_batch.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/render/gl_batch.h b/src/render/gl_batch.h index 04f72a7..21b8f58 100644 --- a/src/render/gl_batch.h +++ b/src/render/gl_batch.h @@ -125,14 +125,12 @@ inline void gl_batch_draw( GL_BATCH<VERTEX>* batch ) { inline U8 gl_batch_is_allowed_primitive( U16 primitive ) { switch( primitive ) { - case GL_TRIANGLE_FAN: - case GL_TRIANGLE_STRIP: - case GL_QUAD_STRIP: - case GL_LINE_STRIP: - case GL_LINE_LOOP: - return 0; - default: + case GL_TRIANGLES: + case GL_LINES: + case GL_QUADS: return 1; + default: + return 0; } } |
