[core] Reset GL values when needed
This commit is contained in:
@@ -10,7 +10,9 @@ void Painter::drawClippingMasks(const std::set<Source*>& sources) {
|
||||
MBGL_DEBUG_GROUP("clipping masks");
|
||||
|
||||
config.program = plainShader->program;
|
||||
config.stencilOp.reset();
|
||||
config.stencilTest = GL_TRUE;
|
||||
config.depthFunc.reset();
|
||||
config.depthTest = GL_TRUE;
|
||||
config.depthMask = GL_FALSE;
|
||||
config.colorMask = { GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE };
|
||||
|
||||
Reference in New Issue
Block a user