committed by
Bart Louwers
parent
7e7fa37fd0
commit
a42b559fbe
@@ -423,6 +423,17 @@ void Context::reset() {
|
||||
performCleanup();
|
||||
}
|
||||
|
||||
#if MLN_DRAWABLE_RENDERER
|
||||
void Context::resetState(gfx::DepthMode depthMode, gfx::ColorMode colorMode) {
|
||||
// Reset GL state to a known state so the CustomLayer always has a clean slate.
|
||||
bindVertexArray = value::BindVertexArray::Default;
|
||||
setDepthMode(depthMode);
|
||||
setStencilMode(gfx::StencilMode::disabled());
|
||||
setColorMode(colorMode);
|
||||
setCullFaceMode(gfx::CullFaceMode::disabled());
|
||||
}
|
||||
#endif
|
||||
|
||||
void Context::setDirtyState() {
|
||||
// Note: does not set viewport/scissorTest/bindFramebuffer to dirty
|
||||
// since they are handled separately in the view object.
|
||||
|
||||
Reference in New Issue
Block a user