diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 20:29:27 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 20:29:27 +1000 |
commit | 567d384b698151e287e31140709c93f1b92e6db4 (patch) | |
tree | e00975124d3f002a8aaa22e85475d913c6950346 /src/ral/backends/opengl/opengl_helpers.h | |
parent | 13949ca02bcf9fcdfcc48ea7949f617553a260b6 (diff) |
loading joints and animations
Diffstat (limited to 'src/ral/backends/opengl/opengl_helpers.h')
-rw-r--r-- | src/ral/backends/opengl/opengl_helpers.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ral/backends/opengl/opengl_helpers.h b/src/ral/backends/opengl/opengl_helpers.h index b73eaea..706e2a0 100644 --- a/src/ral/backends/opengl/opengl_helpers.h +++ b/src/ral/backends/opengl/opengl_helpers.h @@ -140,11 +140,16 @@ static GLenum opengl_tex_type(GPU_TextureType tex_type) { static GLenum opengl_prim_topology(PrimitiveTopology t) { switch (t) { - case CEL_POINT: return GL_POINT; - case CEL_LINE: return GL_LINES; - case CEL_LINE_STRIP: return GL_LINE_STRIP; - case CEL_TRI: return GL_TRIANGLES; - case CEL_TRI_STRIP: return GL_TRIANGLE_STRIP; + case CEL_POINT: + return GL_POINT; + case CEL_LINE: + return GL_LINES; + case CEL_LINE_STRIP: + return GL_LINE_STRIP; + case CEL_TRI: + return GL_TRIANGLES; + case CEL_TRI_STRIP: + return GL_TRIANGLE_STRIP; case PRIMITIVE_TOPOLOGY_COUNT: WARN("Invalid PrimitiveTopology value"); break; |