From 0971cad635eead4760c8459099fdb65770f8f1fb Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 7 Apr 2013 15:51:00 +0200 Subject: [PATCH] Fix crash when using rotation with threaded driver. --- gfx/gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/gl.c b/gfx/gl.c index 983024114a..89145389cd 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -856,9 +856,9 @@ void gl_set_viewport(void *data, unsigned width, unsigned height, bool force_ful static void gl_set_rotation(void *data, unsigned rotation) { + gl_t *gl = (gl_t*)data; struct gl_ortho ortho = {0, 1, 0, 1, -1, 1}; - gl_t *gl = (gl_t*)driver.video_data; gl->rotation = 90 * rotation; gl_set_projection(gl, &ortho, true); }