From a01d349227bbee4d3972e0719cf498264b01e70d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 28 Sep 2014 17:19:54 +0200 Subject: [PATCH] Add note to gl_wrap_type_to_enum --- gfx/gl_common.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gfx/gl_common.h b/gfx/gl_common.h index ecb45d1d2d..ed5d804de8 100644 --- a/gfx/gl_common.h +++ b/gfx/gl_common.h @@ -415,6 +415,8 @@ void gl_init_fbo(gl_t *gl, unsigned width, unsigned height); void gl_deinit_fbo(gl_t *gl); +/* TODO - we need a D3D equivalent for this too - probably move + * this to video driver later so it can be defined per graphics API. */ static inline GLenum gl_wrap_type_to_enum(enum gfx_wrap_type type) { switch (type) @@ -431,9 +433,9 @@ static inline GLenum gl_wrap_type_to_enum(enum gfx_wrap_type type) return GL_REPEAT; case RARCH_WRAP_MIRRORED_REPEAT: return GL_MIRRORED_REPEAT; - default: - return 0; } + + return 0; } #endif