fix depth buffer creation

This commit is contained in:
2019-05-20 12:12:44 +02:00
parent 0e22e9918a
commit 63b38eff92
6 changed files with 18 additions and 6 deletions

View File

@@ -757,7 +757,7 @@ int main(int argc, char** argv)
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
pfd.iPixelType = PFD_TYPE_RGBA;
pfd.cColorBits = 32;
pfd.cDepthBits = 16;
pfd.cDepthBits = 24;
pfd.iLayerType = PFD_MAIN_PLANE;
hDC = GetDC(hWnd);