mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0032782: Visualization, TKD3DHost - improve robustness of test case opengl/drivers/d3dhost
This commit is contained in:
parent
53152e6dd9
commit
da76ea432b
@ -371,7 +371,7 @@ bool D3DHost_View::d3dSwap()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const HRESULT isOK = myD3dDevice->Present (NULL, NULL, NULL, NULL);
|
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,
|
myWorkspace->GetGlContext()->PushMessage (GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_ERROR, 0, GL_DEBUG_SEVERITY_HIGH,
|
||||||
TCollection_AsciiString("Direct3D9, Present device failed, ") + d3dFormatError (isOK));
|
TCollection_AsciiString("Direct3D9, Present device failed, ") + d3dFormatError (isOK));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user