[core] remove dependence on gl.h types

This commit is contained in:
Konstantin Käfer
2016-09-29 15:32:48 +02:00
committed by John Firebaugh
parent 15aece8a30
commit cc78b74098
74 changed files with 1057 additions and 683 deletions

View File

@@ -19,10 +19,10 @@ void Painter::renderCircle(PaintParameters& parameters,
// Abort early.
if (pass == RenderPass::Opaque) return;
context.stencilTest = frame.mapMode == MapMode::Still ? GL_TRUE : GL_FALSE;
context.depthFunc.reset();
context.depthTest = GL_TRUE;
context.depthMask = GL_FALSE;
context.stencilTest = frame.mapMode == MapMode::Still;
context.depthFunc = gl::DepthTestFunction::LessEqual;
context.depthTest = true;
context.depthMask = false;
setDepthSublayer(0);
const CirclePaintProperties& properties = layer.impl->paint;