Fix broken windows 'MessageBox' calls (UI messages).

Reported by Bzzt_Ploink on IRC.
This commit is contained in:
Bastien Montagne 2015-11-24 15:11:28 +01:00
parent edb2e96cd5
commit 0b422900c8

@ -927,14 +927,14 @@ GHOST_TSuccess GHOST_ContextWGL::initializeDrawingContext()
" Blender needs a graphics card driver to work correctly.\n" " Blender needs a graphics card driver to work correctly.\n"
"* Accessing Blender through a remote connection.\n" "* Accessing Blender through a remote connection.\n"
"* Using Blender through a virtual machine.\n\n", "* Using Blender through a virtual machine.\n\n",
"The program will now close\n" "The program will now close Blender - Can't detect 3D hardware accelerated Driver!",
"Blender - Can't detect 3D hardware accelerated Driver!", MB_OK | MB_ICONERROR); MB_OK | MB_ICONERROR);
exit(0); exit(0);
} }
else if (version[0] < '2' || (version[0] == '2' && version[2] < '1')) { else if (version[0] < '2' || (version[0] == '2' && version[2] < '1')) {
MessageBox(m_hWnd, "Blender requires a graphics driver with OpenGL 2.1 support\n" MessageBox(m_hWnd, "Blender requires a graphics driver with OpenGL 2.1 support\n",
"The program will now close\n", "The program will now close Blender - Unsupported Graphics Driver!",
"Blender - Unsupported Graphics Driver!", MB_OK | MB_ICONERROR); MB_OK | MB_ICONERROR);
exit(0); exit(0);
} }