Results 1 to 3 of 3

Thread: wglDeleteContext

  1. #1
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    USA
    Posts
    302

    wglDeleteContext

    Okay, I'd posted a problem a few weeks back that I was having with Win2K and wglDeleteContext(). I've narrowed it down! The textures I'm loading are RGB with a bpp (bytes-per-pixel) of 3. I noticed that when running in 24 bit color, I do not get the wglDeleteContext crash but while running in 16bit I do. So I guess the clear problem is that I'm using too large color data. I had thought that this wouldn't be a problem thinking that OpenGL would take care of any needed conversion when it copied the data to video memory but I guess I was wrong... So, does that mean I still have to worry about whether a user is running in 5-6-5 or 5-5-5 RGB? Any help on this would be GREATLY appreciated! Thanks!

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

    Re: wglDeleteContext

    Hi !

    Normally I have no problems at all like this, I have noticed one time though, when using software rendering into a DIB, I had to set the color depth to match the DIB color depth or else I got all kinds of weird problems.

    But with normal rendering to a Windows I have never had any problems like this.

    Mikael

  3. #3
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    USA
    Posts
    302

    Re: wglDeleteContext

    I've found that this doesn't happen under Win98. Just Win2k. Wierd huh?

Similar Threads

  1. wglDeleteContext causing problems
    By Punchey in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-17-2012, 05:21 AM
  2. wglDeleteContext cleanup?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-26-2005, 03:27 AM
  3. wglDeleteContext
    By PeachMelba in forum OpenGL: Windows
    Replies: 2
    Last Post: 08-12-2004, 01:22 PM
  4. wglDeleteContext - int 3 exception breakpoint
    By slammo in forum OpenGL: Windows
    Replies: 2
    Last Post: 05-05-2004, 05:36 AM
  5. wglDeleteContext error
    By jimmi in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-26-2002, 07:54 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