From 4941cd7dbda22a238a1c61e2fe567735247d7884 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Feb 2016 03:47:33 +0100 Subject: [PATCH] gl_ff_vertex - avoid glLoadIdentity --- gfx/common/gl_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/common/gl_common.c b/gfx/common/gl_common.c index 820922c98c..3ce537025c 100644 --- a/gfx/common/gl_common.c +++ b/gfx/common/gl_common.c @@ -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 }