Merge pull request #3535 from bparker06/thread_toggle

context must be current, not released, to use GL
This commit is contained in:
Twinaphex 2016-09-07 03:49:40 +02:00 committed by GitHub
commit 07c1dd02b6

View File

@ -203,9 +203,10 @@ static void gl_raster_font_free_font(void *data)
font->font_driver->free(font->font_data);
if (settings->video.threaded)
video_context_driver_make_current(false);
video_context_driver_make_current(true);
glDeleteTextures(1, &font->tex);
free(font);
}