Remove probably outdated and unnecessary color depth check

This commit is contained in:
Henrik Rydgard committed 2015-08-26 23:56:38 +02:00
1 parent 1e8a1b801f
commit f3e0029285
1 file changed
-9
-9
View File
@@ -116,15 +116,6 @@ unsigned int WINAPI TheThread(void *)
host = oldHost;
host->UpdateUI();
//Check Colour depth
HDC dc = GetDC(NULL);
u32 colour_depth = GetDeviceCaps(dc, BITSPIXEL);
ReleaseDC(NULL, dc);
if (colour_depth != 32){
MessageBox(0, L"Please switch your display to 32-bit colour mode", L"OpenGL Error", MB_OK);
ExitProcess(1);
}
std::string error_string;
if (!host->InitGraphics(&error_string)) {