Move get_alignment inlined function to gfx/gl.c

This commit is contained in:
twinaphex 2014-10-02 01:11:01 +02:00
parent 33398a550b
commit 1b45023528
2 changed files with 11 additions and 11 deletions

View File

@ -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;

View File

@ -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;