Skip to content
Snippets Groups Projects
Commit e453a384 authored by James R.'s avatar James R.
Browse files

Merge branch 'gif-colorlutfix' into 'next'

Fix OpenGL GIF recording crashing with gif_localcolortable disabled

See merge request !1196
parents b19764dc 4c59f8c6
No related branches found
No related tags found
1 merge request!1196Fix OpenGL GIF recording crashing with gif_localcolortable disabled
......@@ -507,7 +507,7 @@ static void GIF_rgbconvert(UINT8 *linear, UINT8 *scr)
size_t src = 0, dest = 0;
size_t size = (vid.width * vid.height * 3);
InitColorLUT(&gif_colorlookup, gif_framepalette, true);
InitColorLUT(&gif_colorlookup, (gif_localcolortable) ? gif_framepalette : gif_headerpalette, true);
while (src < size)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment