From 95e77d02eca84c278b56ba0c3fe6835c31cb3256 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 19 May 2007 12:27:53 +0000 Subject: [PATCH] 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. " --- examples/osgviewerMFC/MFC_OSG.cpp | 4 +- examples/osgviewerMFC/MFC_OSG_MDI.vcproj | 314 ----------------------- 2 files changed, 2 insertions(+), 316 deletions(-) delete mode 100644 examples/osgviewerMFC/MFC_OSG_MDI.vcproj diff --git a/examples/osgviewerMFC/MFC_OSG.cpp b/examples/osgviewerMFC/MFC_OSG.cpp index 5c5ec43c5..e8111d9f5 100644 --- a/examples/osgviewerMFC/MFC_OSG.cpp +++ b/examples/osgviewerMFC/MFC_OSG.cpp @@ -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, diff --git a/examples/osgviewerMFC/MFC_OSG_MDI.vcproj b/examples/osgviewerMFC/MFC_OSG_MDI.vcproj deleted file mode 100644 index c3102e1e4..000000000 --- a/examples/osgviewerMFC/MFC_OSG_MDI.vcproj +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -