Reply 140 of 156, by `Moe`
Thanks for the report. I have a faint idea how to fix 16-bit rendering. Could you try using GL_RGBA8 as internalformat for all textures? It should be used everywhere except in RenderFrame's TexSubImage2D call. I can't check since the Linux ATI driver doesn't support accelerated OpenGL at all for 16bit.
My code is tested against DosBox, QEmu and Scummvm. This is the absolute minimum I require, so I don't accept pure DosBox-bias 😉 There must be a different way to achieve flipping, probably by changing DOSBox (since we already provide a patch, it could be added there).
The crash could be related to SDL_VideoQuit being called twice. That's intentional and inevitable. Be sure to re-patch your SDL tree, I have added one line in src/events/SDL_events.c to fix a crash due to this behaviour. Previous versions incorporated a similar modification, it seems to have been lost during your SDL-1.2 port.