Bug #788

OpenGL driver does not call ExitFunc on WM_CLOSE

Added by kaetemi over 8 years ago. Updated almost 8 years ago.

Status:Closed Start date:01/29/2010
Priority:Normal Due date:
Assignee:kervala % Done:

100%

Category:NeL: General
Target version:Version 0.8.0 Estimated time:1.00 hour

Description

Different behaviour under OpenGL and Direct3D driver for WM_CLOSE.

For the OpenGL implementation it's currently as follows:

    if(message == WM_CLOSE)
        return 0;

The Direct3D implementation has it like this:

    if(message == WM_CLOSE)
    {
        if(pDriver && pDriver->ExitFunc)
        {
            pDriver->ExitFunc();
        }
        else
        {
#ifndef NL_DISABLE_MENU
            // if we don't disable menu, alt F4 make a direct exit else we discard the message
            exit(0);
#endif // NL_DISABLE_MENU
        }
        return 0;
    }

History

#1 Updated by kervala over 8 years ago

  • Status changed from New to Validated
  • Estimated time set to 1.00

#2 Updated by kervala over 8 years ago

  • Status changed from Validated to Assigned
  • Assignee set to kervala

#3 Updated by kervala over 8 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2310.

#4 Updated by kervala over 8 years ago

  • Target version set to 0.8.0

#5 Updated by sfb over 8 years ago

  • Status changed from Resolved to Closed

#6 Updated by kervala almost 8 years ago

  • Project changed from NeL to Ryzom
  • Category deleted (3d - OpenGL)
  • Target version deleted (0.8.0)

#7 Updated by kervala almost 8 years ago

  • Category set to NeL: General
  • Target version set to Version 0.8.0

Also available in: Atom PDF