mirror of
https://github.com/libretro/RetroArch
synced 2025-03-27 23:37:39 +00:00
Change some function parameters for gl_ff_matrix/gl_ff_vertex
This commit is contained in:
parent
46b2100132
commit
641a37ce06
gfx/common
@ -23,11 +23,9 @@ extern void gl_load_texture_data(uint32_t id_data,
|
||||
unsigned width, unsigned height,
|
||||
const void *frame, unsigned base_size);
|
||||
|
||||
void gl_ff_vertex(const void *data)
|
||||
void gl_ff_vertex(const struct gfx_coords *coords)
|
||||
{
|
||||
#ifndef NO_GL_FF_VERTEX
|
||||
const struct gfx_coords *coords = (const struct gfx_coords*)data;
|
||||
|
||||
/* Fall back to fixed function-style if needed and possible. */
|
||||
glClientActiveTexture(GL_TEXTURE1);
|
||||
glTexCoordPointer(2, GL_FLOAT, 0, coords->lut_tex_coord);
|
||||
@ -42,11 +40,10 @@ void gl_ff_vertex(const void *data)
|
||||
#endif
|
||||
}
|
||||
|
||||
void gl_ff_matrix(const void *data)
|
||||
void gl_ff_matrix(const math_matrix_4x4 *mat)
|
||||
{
|
||||
#ifndef NO_GL_FF_MATRIX
|
||||
math_matrix_4x4 ident;
|
||||
const math_matrix_4x4 *mat = (const math_matrix_4x4*)data;
|
||||
|
||||
/* Fall back to fixed function-style if needed and possible. */
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@ -339,7 +339,7 @@ static INLINE unsigned gl_wrap_type_to_enum(enum gfx_wrap_type type)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void gl_ff_vertex(const void *data);
|
||||
void gl_ff_matrix(const void *data);
|
||||
void gl_ff_vertex(const struct gfx_coords *coords);
|
||||
void gl_ff_matrix(const math_matrix_4x4 *mat);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user