I know there are a zillion posts on multithreading issues, but none of them seemed to apply to my problem. I’ll try to be as specific as possible.
I’m working on a large simulator that suddenly needs to go multi-threaded.
Using Visual C++ 6.0, I changed the settings under code generation to use multi-threaded instead of single-threaded runtime libraries. This is the only change I made. No threads are actually created within my program.
Most everything still worked fine, except that now my procedural water texture always comes out flat (totally blue bump map).
This texture works a lot like nvidia’s interactive reflection map demo (looks like a liquid sheet of metal with nvidia logo). That is, it renders a lot to the backbuffer and does a lot of copyTexSubImages.
To make it more interesting, I tried changing my standalone water texture demo to multithreaded, and it still worked fine.
I have basically zero experience with multithreading, so I’m just hoping that some of you might have some suggestions as to why this one thing breaks when the change is made? I’m not even sure where to start looking for the problem.