From Michael Hartman, "I have made a small change to the osgviewerMFC application that resolved most of my home computer issues. It seams that my home computer needed to have the pixel format set with PFD_DOUBLEBUFFER.

Also,  with the cmake ability you are free to remove the MFC_OSG_MDI.vcproj file.
"
This commit is contained in:
Robert Osfield
2007-05-19 12:27:53 +00:00
parent de598bffaa
commit 95e77d02ec
2 changed files with 2 additions and 316 deletions

View File

@@ -14,8 +14,8 @@ cOSG::cOSG(HWND hWnd) :
{
sizeof(PIXELFORMATDESCRIPTOR),
1,
PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL,
PFD_TYPE_RGBA,
PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER,
PFD_TYPE_RGBA,
24,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0,