(GL) Turn set_texture_coords into macro

This commit is contained in:
twinaphex 2014-10-02 00:35:01 +02:00
parent a9850a1ea7
commit 2afcb61f37

View File

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