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,595

    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.

Similar Threads

  1. Replies: 4
    Last Post: 04-03-2008, 04:11 PM
  2. debug/release difference in glReadPixels
    By bozalina in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 09-21-2006, 09:03 AM
  3. Tool Box : Not the same on Release and Debug mode, why ?
    By Leyder Dylan in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-04-2003, 06:57 AM
  4. Debug vs. Release Builds
    By ribblem in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-01-2001, 07:19 AM
  5. debug(Release) message
    By gvili r in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-08-2000, 03:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean