summaryrefslogtreecommitdiff
path: root/src/ral/backends/opengl/opengl_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ral/backends/opengl/opengl_helpers.h')
-rw-r--r--src/ral/backends/opengl/opengl_helpers.h15
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;