mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(GL) Turn set_texture_coords into macro
This commit is contained in:
parent
a9850a1ea7
commit
2afcb61f37
13
gfx/gl.c
13
gfx/gl.c
@ -125,14 +125,11 @@ static void gl_overlay_tex_geom(void *data,
|
||||
float x, float y, float w, float h);
|
||||
#endif
|
||||
|
||||
static inline void set_texture_coords(GLfloat *coords,
|
||||
GLfloat xamt, GLfloat yamt)
|
||||
{
|
||||
coords[2] = xamt;
|
||||
coords[6] = xamt;
|
||||
coords[5] = yamt;
|
||||
coords[7] = yamt;
|
||||
}
|
||||
#define set_texture_coords(coords, xamt, yamt) \
|
||||
coords[2] = xamt; \
|
||||
coords[6] = xamt; \
|
||||
coords[5] = yamt; \
|
||||
coords[7] = yamt
|
||||
|
||||
#if defined(HAVE_EGL) && defined(HAVE_OPENGLES2)
|
||||
static bool check_eglimage_proc(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user