JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.01k stars 612 forks source link

rd-rend2 #402

Closed eezstreet closed 10 years ago

eezstreet commented 10 years ago

So I'm having some issues with rd-rend2... https://github.com/JACoders/OpenJK/blob/rend2/codemp/rd-rend2/tr_extensions.cpp#L339-L381

This chunk of code here. All of those function pointers are getting NULL put into them. I checked it out in debug and it doesn't appear to be working correctly. If anyone knows anything, that would be great.

xycaleth commented 10 years ago

You should be using qwglGetProcAddress, e.g.:

#define GETADDRESS(x) qwglGetProcAddress(x)
eezstreet commented 10 years ago

Fixed. I'm not getting anything like what @ensiform is getting though in terms of results. I'm getting heap corruption in R_ModelInit() and bad shaders.

ensiform commented 10 years ago

That's because I fixed the shader parser that you just commented out because it wasn't the same. I'm not sure I wanted to commit changes to COM_Parse stuff in the branch.

xycaleth commented 10 years ago

I think we can close this...