https://bugs.winehq.org/show_bug.cgi?id=27528
--- Comment #12 from Chebanenko Igor chebanenkoigor93@gmail.com --- I don't know if that will help,but here is Quake 2 source code. It is source code related with software rendering:
https://github.com/id-Software/Quake-2/tree/master/ref_soft