3dfxdev / EDGE

EDGE Source Code
http://edge2.sf.net
74 stars 10 forks source link

Feature/Renderer: fix up glBindAttribLocation #77

Closed Corbachu closed 4 years ago

Corbachu commented 4 years ago

From r_bumpmap: glBindAttribLocation(h_prog,3,"tangent");

Nvidia cards cannot handle passing the tangent value (possibly due to SDL2 OpenGL context handling); since it cannot make it available, rendering for everything in a level but the skybox is pure black.

Corbachu commented 4 years ago

Can’t test without first properly casting values in the buffer code - but the initial tangent numeral has been changed to not hit an index taken by Nvidia’s GL backend.

Corbachu commented 4 years ago

My fixes that I pushed get the game running on nvidia but the check is still showing the attribute as unavailable on nVidia, but not sure what that is impacting at the moment as I haven’t had a lot of time to test lately.