mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Move get_alignment inlined function to gfx/gl.c
This commit is contained in:
parent
33398a550b
commit
1b45023528
11
gfx/gl.c
11
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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user