Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Textures in Debug and Release Versions under VC++ 6.0

  1. #1

    Textures in Debug and Release Versions under VC++ 6.0

    I use 25 Texturemaps, the Maps are BMP-Files.
    If i compile the release version everthing is OK but if i compile the debug only the last loaded texture is visible, all other textures are overwritten with the last BMP-File.

    Does somebody know the reason for this?

    thanks
    Solobase

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: Textures in Debug and Release Versions under VC++ 6.0

    Yes, you have made a mistake somewhere...

    The most common is that you have put an ASSERT or TRACE macro (if you are using MFC) in the wrong place, for example:

    if( x > 0)
    TRACE( "X=%d\n", x);
    y = 10;

    This code will behave very different in release and debug mode, you would have to change it to:

    if( x > 0)
    {
    TRACE( "X=%d\n", x);
    }
    y = 10;

    Take a look for this kind of stuff, it might be causing the problem.

    Mikael

  3. #3

    Re: Textures in Debug and Release Versions under VC++ 6.0

    thanl you mikael_aronsson for this tip,
    unfortunatly it wasn't the reason. I removed all TRACES with // but the problem still exists.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •