Commit 2f6915f6 authored by Peter Karasev's avatar Peter Karasev

remove incorrect error popup (QT5 + local build + OpenGL 4.x)

Conflicts:
	Rendering/OpenGL2/vtkWin32OpenGLRenderWindow.cxx
parent 8f68f6c1
......@@ -690,17 +690,14 @@ void vtkWin32OpenGLRenderWindow::SetupPixelFormatPaletteAndContext(
{
DescribePixelFormat(hDC, currentPixelFormat,sizeof(pfd2), &pfd2);
if (!(pfd2.dwFlags & PFD_SUPPORT_OPENGL))
{
vtkDebugWithObjectMacro(this,"DescribePixelFormat failed; either invalid format or illegal multiple Win32 OpenGL initialize calls.");
{ // @note see https://msdn.microsoft.com/en-us/library/windows/desktop/dd369049(v=vs.85).aspx
// "Once a window's pixel format is set, it cannot be changed."
vtkErrorWithObjectMacro(this," call to DescribePixelFormat failed. Illegal duplicate invocation or no OpenGL support.");
if (this->HasObserver(vtkCommand::ExitEvent))
{
this->InvokeEvent(vtkCommand::ExitEvent, NULL);
return;
}
else
{
return;
}
}
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment