mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
gl_ff_vertex - avoid glLoadIdentity
This commit is contained in:
parent
9f26e3bc69
commit
4941cd7dbd
@ -38,13 +38,15 @@ void gl_ff_vertex(const void *data)
|
||||
void gl_ff_matrix(const void *data)
|
||||
{
|
||||
#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);
|
||||
glLoadMatrixf(mat->data);
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glLoadIdentity();
|
||||
matrix_4x4_identity(&ident);
|
||||
glLoadMatrixf(ident.data);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user