Fix crash when using rotation with threaded driver.

This commit is contained in:
Themaister 2013-04-07 15:51:00 +02:00
parent 651e088deb
commit 0971cad635

View File

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