mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
Lower depth bits requirement
This commit is contained in:
parent
82db74b17a
commit
d71da60c40
1 changed files with 7 additions and 8 deletions
|
@ -229,9 +229,11 @@ OpenGLCreationHelper::OpenGLCreationHelper(HWND window) : window(window)
|
|||
memset(&pfd, 0, sizeof(PIXELFORMATDESCRIPTOR));
|
||||
pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR);
|
||||
pfd.nVersion = 1;
|
||||
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL;
|
||||
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
|
||||
pfd.iPixelType = PFD_TYPE_RGBA;
|
||||
pfd.cColorBits = 24;
|
||||
pfd.cColorBits = 32;
|
||||
pfd.cDepthBits = 16;
|
||||
pfd.cStencilBits = 8;
|
||||
|
||||
int pixelformat = ChoosePixelFormat(query_dc, &pfd);
|
||||
SetPixelFormat(query_dc, pixelformat, &pfd);
|
||||
|
@ -264,13 +266,10 @@ HGLRC OpenGLCreationHelper::CreateContext(HDC hdc, HGLRC share_context)
|
|||
pfd.nVersion = 1;
|
||||
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
|
||||
pfd.iPixelType = PFD_TYPE_RGBA;
|
||||
pfd.cColorBits = 24;
|
||||
pfd.cRedBits = 8;
|
||||
pfd.cGreenBits = 8;
|
||||
pfd.cBlueBits = 8;
|
||||
pfd.cAlphaBits = 8;
|
||||
pfd.cDepthBits = 24;
|
||||
pfd.cColorBits = 32;
|
||||
pfd.cDepthBits = 16;
|
||||
pfd.cStencilBits = 8;
|
||||
|
||||
int pixelformat = ChoosePixelFormat(hdc, &pfd);
|
||||
SetPixelFormat(hdc, pixelformat, &pfd);
|
||||
|
||||
|
|
Loading…
Reference in a new issue