mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0029517: Visualization - introduce AlphaMode property defining alpha value handling options
This commit is contained in:
@@ -869,6 +869,7 @@ void OpenGl_View::render (Graphic3d_Camera::Projection theProjection,
|
||||
// ==================================
|
||||
|
||||
const Handle(OpenGl_Context)& aContext = myWorkspace->GetGlContext();
|
||||
aContext->SetSampleAlphaToCoverage (myRenderParams.ToEnableAlphaToCoverage);
|
||||
|
||||
#if !defined(GL_ES_VERSION_2_0)
|
||||
// Disable current clipping planes
|
||||
@@ -1032,6 +1033,9 @@ void OpenGl_View::render (Graphic3d_Camera::Projection theProjection,
|
||||
renderFrameStats();
|
||||
}
|
||||
|
||||
myWorkspace->ResetAppliedAspect();
|
||||
aContext->SetSampleAlphaToCoverage (false);
|
||||
|
||||
// reset FFP state for safety
|
||||
aContext->BindProgram (Handle(OpenGl_ShaderProgram)());
|
||||
if (aContext->caps->ffpEnable)
|
||||
|
Reference in New Issue
Block a user