win32-a little tweak to ogl display method, should fix some video cards.. dont think it should break anything

This commit is contained in:
zeromus 2013-03-11 02:05:28 +00:00
parent 7f7beb6027
commit 4577cc9c92
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ bool initContext(HWND hwnd, HGLRC *hRC)
memset(&pfd,0, sizeof(PIXELFORMATDESCRIPTOR));
pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR);
pfd.nVersion = 1;
pfd.dwFlags = PFD_SUPPORT_OPENGL | PFD_DRAW_TO_WINDOW;
pfd.dwFlags = PFD_SUPPORT_OPENGL | PFD_DRAW_TO_WINDOW | PFD_DOUBLEBUFFER;
pfd.iPixelType = PFD_TYPE_RGBA;
pfd.cColorBits = 24;
pfd.cAlphaBits = 8;