| Index: gpu/command_buffer/client/client_context_state_impl_autogen.h
|
| diff --git a/gpu/command_buffer/client/client_context_state_impl_autogen.h b/gpu/command_buffer/client/client_context_state_impl_autogen.h
|
| index cff14f7a82c60ca86e333338415c9dbcf3e98b94..d0ce722624332d05f79addfeedb175badea0fa73 100644
|
| --- a/gpu/command_buffer/client/client_context_state_impl_autogen.h
|
| +++ b/gpu/command_buffer/client/client_context_state_impl_autogen.h
|
| @@ -21,7 +21,8 @@ ClientContextState::EnableFlags::EnableFlags()
|
| sample_alpha_to_coverage(false),
|
| sample_coverage(false),
|
| scissor_test(false),
|
| - stencil_test(false) {
|
| + stencil_test(false),
|
| + rasterizer_discard(false) {
|
| }
|
|
|
| bool ClientContextState::SetCapabilityState(GLenum cap,
|
| @@ -83,6 +84,12 @@ bool ClientContextState::SetCapabilityState(GLenum cap,
|
| enable_flags.stencil_test = enabled;
|
| }
|
| return true;
|
| + case GL_RASTERIZER_DISCARD:
|
| + if (enable_flags.rasterizer_discard != enabled) {
|
| + *changed = true;
|
| + enable_flags.rasterizer_discard = enabled;
|
| + }
|
| + return true;
|
| default:
|
| return false;
|
| }
|
| @@ -116,6 +123,9 @@ bool ClientContextState::GetEnabled(GLenum cap, bool* enabled) const {
|
| case GL_STENCIL_TEST:
|
| *enabled = enable_flags.stencil_test;
|
| return true;
|
| + case GL_RASTERIZER_DISCARD:
|
| + *enabled = enable_flags.rasterizer_discard;
|
| + return true;
|
| default:
|
| return false;
|
| }
|
|
|