Results 1 to 4 of 4

Thread: Problem with displaymode switching

  1. #1
    Senior Member OpenGL Pro
    Join Date
    Dec 2007
    Posts
    1,077

    Problem with displaymode switching

    Hi there.
    I've got serious problems with my code that switches the screen resolution etc.. If I'm starting the program the first time nothing unusual happens. But always while exitting the second session, the program hangs at the ChangeDisplaySettings( NULL, 0 ) command.
    I tried to set the resolution afterwards manually and the windows dialog also hangs.
    Has anybody an idea?
    I could post some code as well, if that would help.

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2000
    Posts
    26

    Re: Problem with displaymode switching

    At NeHe page is working code for that.

    [CS]
    -<[CS]>-

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Dec 2007
    Posts
    1,077

    Re: Problem with displaymode switching

    Well, I know one can go to some pages and do cut-and-paste programming, but that doesn't satisfy me.
    In win98, it HANGS !!!IN!!! the ChangeDisplaySettings(NULL,0) upon the second exit of the "game". In WinNT it doesn't hang at all. What could cause that?

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Dec 2007
    Posts
    1,077

    Re: Problem with displaymode switching

    Well, NeHe means that it can make the desktop corrupt if one first destroys the window and then switches back to normal graphics mode, which is actually what I'm doing. Trying that out. Gonna ask mccraighead for an answer in the advanced board.

Similar Threads

  1. Shader problem when switching computer
    By OpenCoffee in forum OpenGL: GLSL
    Replies: 2
    Last Post: 09-15-2013, 02:20 PM
  2. problem when switching color buffer for reading
    By stepasite in forum OpenGL: Windows
    Replies: 4
    Last Post: 12-24-2012, 11:54 AM
  3. Problem switching from conventional vertex arrays to VBO's
    By dopeflow in forum OpenGL: Advanced Coding
    Replies: 15
    Last Post: 06-19-2003, 09:43 AM
  4. Texture Problem When Switching Modes...
    By Sephiroth in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-01-2002, 02:00 PM
  5. Problem with displaymode switching
    By msteinberg in forum OpenGL: Advanced Coding
    Replies: 18
    Last Post: 12-19-2000, 01:52 PM

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