Commit 652dbfc6 by Jamie Madill Committed by Commit Bot

Init Blend State color mask defaults.

This is an unrelated code cleanup. Previously we would only init these member variables in the gl::State initialization code. Bug: angleproject:3611 Change-Id: I3aa34958ce5b00542d45ef63e0b32010b2eb3220 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1902188Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent a5a04ac0
...@@ -355,11 +355,6 @@ void State::initialize(Context *context) ...@@ -355,11 +355,6 @@ void State::initialize(Context *context)
mNearZ = 0.0f; mNearZ = 0.0f;
mFarZ = 1.0f; mFarZ = 1.0f;
mBlend.colorMaskRed = true;
mBlend.colorMaskGreen = true;
mBlend.colorMaskBlue = true;
mBlend.colorMaskAlpha = true;
mActiveSampler = 0; mActiveSampler = 0;
mVertexAttribCurrentValues.resize(caps.maxVertexAttributes); mVertexAttribCurrentValues.resize(caps.maxVertexAttributes);
......
...@@ -52,6 +52,10 @@ BlendState::BlendState() ...@@ -52,6 +52,10 @@ BlendState::BlendState()
blendEquationAlpha = GL_FUNC_ADD; blendEquationAlpha = GL_FUNC_ADD;
sampleAlphaToCoverage = false; sampleAlphaToCoverage = false;
dither = true; dither = true;
colorMaskRed = true;
colorMaskGreen = true;
colorMaskBlue = true;
colorMaskAlpha = true;
} }
BlendState::BlendState(const BlendState &other) BlendState::BlendState(const BlendState &other)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment