I’m having some trouble with texturing when I use the Release configuration in Visual C++ 6.
I’m applying a texture to a quad, and it works just fine using the “Debug” configuration. When I switch to the “Release” configuration, the quad appears totally black.
The texture comes from a PPM file, which I’m reading through a custom routine.
I tried modifying the checker.c program from the redbook to apply the checker texture to one quad and my texture to another quad. The checker texture works in both Debug and Release, but my texture only works in Debug mode (again, the quad is all black in Release). Clearly, there must be something different with my texture loading code, but I’m baffled as to why it would only fail in Release mode.
Any ideas would be welcomed.