I don't think it's worth keeping the jpeg-6 directory in the quake3 source, it's
code that is maintained elsewhere; so here's a patch that chucks it out, and
fixes LoadJPG to use memory buffer instead of a FILE * (turns out TTimo hacked
up jpeg-6 to do this already, rather than do it in tr_image.c)
Unfortunately I haven't had a chance to test this patch, so all I know is that
it builds. I'd welcome comments from testers before applying it to SVN... I
will be able to test it later tonight when I'm not skiving off at work.
Despite what has been said on the mailinglist I agree that q3 should use the
system libjpeg. However, your patch is not sufficient. You'd need to also
provide a memory manager so libjpeg doesn't use malloc() but ri.Malloc(). The
interface for that is quite complicated though so doing that is not easy.
Therefore WONTFIX.
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.
--ryan.
Created attachment 790 [details] patch makefile to build with libjpeg and fix tr_image to work with memory buffer