From 1b4502352818c03f42cf93140e330949e0e0368f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Oct 2014 01:11:01 +0200 Subject: [PATCH] Move get_alignment inlined function to gfx/gl.c --- gfx/gl.c | 11 +++++++++++ gfx/gl_common.h | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index bc2fde2f03..880d3f7689 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -83,6 +83,17 @@ static const GLfloat white_color[] = { 1, 1, 1, 1, }; +static inline unsigned get_alignment(unsigned pitch) +{ + if (pitch & 1) + return 1; + if (pitch & 2) + return 2; + if (pitch & 4) + return 4; + return 8; +} + static inline bool gl_query_extension(gl_t *gl, const char *ext) { bool ret = false; diff --git a/gfx/gl_common.h b/gfx/gl_common.h index a878bdfac0..4fc4ba2d00 100644 --- a/gfx/gl_common.h +++ b/gfx/gl_common.h @@ -143,17 +143,6 @@ static inline bool gl_check_error(void) return false; } -static inline unsigned get_alignment(unsigned pitch) -{ - if (pitch & 1) - return 1; - if (pitch & 2) - return 2; - if (pitch & 4) - return 4; - return 8; -} - struct gl_fbo_rect { unsigned img_width;