From: ngavrilo Date: Fri, 19 Aug 2022 09:33:52 +0000 (+0300) Subject: 0032782: Visualization, TKD3DHost - improve robustness of test case opengl/drivers... X-Git-Tag: V7_7_0_beta~27 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=da76ea432b2b0261219cbe49f49ffed5c4451b8a;p=occt.git 0032782: Visualization, TKD3DHost - improve robustness of test case opengl/drivers/d3dhost --- diff --git a/src/D3DHost/D3DHost_View.cxx b/src/D3DHost/D3DHost_View.cxx index af3306d140..a0e90e33f9 100644 --- a/src/D3DHost/D3DHost_View.cxx +++ b/src/D3DHost/D3DHost_View.cxx @@ -371,7 +371,7 @@ bool D3DHost_View::d3dSwap() } const HRESULT isOK = myD3dDevice->Present (NULL, NULL, NULL, NULL); - if (isOK != D3D_OK) + if (isOK != D3D_OK && isOK != S_PRESENT_OCCLUDED) { myWorkspace->GetGlContext()->PushMessage (GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_ERROR, 0, GL_DEBUG_SEVERITY_HIGH, TCollection_AsciiString("Direct3D9, Present device failed, ") + d3dFormatError (isOK));