Spellcaster Studios

Make it happen…

Finally fixed!

screen683

This was a tough one to track… Ended up using GL Monitor to list all the calls and looking at them in detail, trying to figure out what was happening there…

The problem was the redundant texture switch system.

To minimize texture changes, before I set a texture I see if that texture is already set on a texture unit, and don’t set it if it is… Here, it resulted in the issue (for reasons I’m not 100% sure on) because the ambient occlusion texture was not being setup except at the shader level (glUniform1i). As soon as I got rid of the redundancy test, it worked perfectly… As I said, not sure on what happens because of that (the texture was set), or why it only happens under Mac…

Now to play the beginning of the game under Linux to check for bugs and to package this so the artist can play it and test it and get a feel for it so I can start overhauling the UI.

Now listening to “Veto” by “Heaven Shall Burn”

Comment