Index: gpu/command_buffer/service/context_state_impl_autogen.h |
diff --git a/gpu/command_buffer/service/context_state_impl_autogen.h b/gpu/command_buffer/service/context_state_impl_autogen.h |
index bd71bddf7e4b7b24faf1aa5f64120e69036654f4..ef81ff2d39c410552a3528d46307c1f43d603a4a 100644 |
--- a/gpu/command_buffer/service/context_state_impl_autogen.h |
+++ b/gpu/command_buffer/service/context_state_impl_autogen.h |
@@ -52,6 +52,8 @@ void ContextState::Initialize() { |
hint_generate_mipmap = GL_DONT_CARE; |
hint_fragment_shader_derivative = GL_DONT_CARE; |
line_width = 1.0f; |
+ pack_alignment = 4; |
+ unpack_alignment = 4; |
polygon_offset_factor = 0.0f; |
polygon_offset_units = 0.0f; |
sample_coverage_value = 1.0f; |
@@ -115,6 +117,8 @@ void ContextState::InitState() const { |
glHint( |
GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES, hint_fragment_shader_derivative); |
glLineWidth(line_width); |
+ glPixelStorei(GL_PACK_ALIGNMENT, pack_alignment); |
+ glPixelStorei(GL_UNPACK_ALIGNMENT, unpack_alignment); |
glPolygonOffset(polygon_offset_factor, polygon_offset_units); |
glSampleCoverage(sample_coverage_value, sample_coverage_invert); |
glScissor(scissor_x, scissor_y, scissor_width, scissor_height); |
@@ -161,37 +165,28 @@ bool ContextState::GetEnabled(GLenum cap) const { |
bool ContextState::GetStateAsGLint( |
GLenum pname, GLint* params, GLsizei* num_written) const { |
switch (pname) { |
- case GL_VIEWPORT: |
- *num_written = 4; |
- if (params) { |
- params[0] = static_cast<GLint>(viewport_x); |
- params[1] = static_cast<GLint>(viewport_y); |
- params[2] = static_cast<GLint>(viewport_width); |
- params[3] = static_cast<GLint>(viewport_height); |
- } |
- return true; |
- case GL_BLEND_SRC_RGB: |
+ case GL_GENERATE_MIPMAP_HINT: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(blend_source_rgb); |
+ params[0] = static_cast<GLint>(hint_generate_mipmap); |
} |
return true; |
- case GL_BLEND_DST_RGB: |
+ case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(blend_dest_rgb); |
+ params[0] = static_cast<GLint>(hint_fragment_shader_derivative); |
} |
return true; |
- case GL_BLEND_SRC_ALPHA: |
+ case GL_DEPTH_CLEAR_VALUE: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(blend_source_alpha); |
+ params[0] = static_cast<GLint>(depth_clear); |
} |
return true; |
- case GL_BLEND_DST_ALPHA: |
+ case GL_CULL_FACE_MODE: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(blend_dest_alpha); |
+ params[0] = static_cast<GLint>(cull_mode); |
} |
return true; |
case GL_LINE_WIDTH: |
@@ -215,16 +210,37 @@ bool ContextState::GetStateAsGLint( |
params[0] = static_cast<GLint>(stencil_clear); |
} |
return true; |
- case GL_GENERATE_MIPMAP_HINT: |
+ case GL_PACK_ALIGNMENT: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(hint_generate_mipmap); |
+ params[0] = static_cast<GLint>(pack_alignment); |
} |
return true; |
- case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: |
+ case GL_UNPACK_ALIGNMENT: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(hint_fragment_shader_derivative); |
+ params[0] = static_cast<GLint>(unpack_alignment); |
+ } |
+ return true; |
+ case GL_STENCIL_WRITEMASK: |
+ *num_written = 1; |
+ if (params) { |
+ params[0] = static_cast<GLint>(stencil_front_writemask); |
+ } |
+ return true; |
+ case GL_STENCIL_BACK_WRITEMASK: |
+ *num_written = 1; |
+ if (params) { |
+ params[0] = static_cast<GLint>(stencil_back_writemask); |
+ } |
+ return true; |
+ case GL_VIEWPORT: |
+ *num_written = 4; |
+ if (params) { |
+ params[0] = static_cast<GLint>(viewport_x); |
+ params[1] = static_cast<GLint>(viewport_y); |
+ params[2] = static_cast<GLint>(viewport_width); |
+ params[3] = static_cast<GLint>(viewport_height); |
} |
return true; |
case GL_COLOR_WRITEMASK: |
@@ -252,163 +268,163 @@ bool ContextState::GetStateAsGLint( |
params[1] = static_cast<GLint>(z_far); |
} |
return true; |
- case GL_DEPTH_CLEAR_VALUE: |
- *num_written = 1; |
+ case GL_SCISSOR_BOX: |
+ *num_written = 4; |
if (params) { |
- params[0] = static_cast<GLint>(depth_clear); |
+ params[0] = static_cast<GLint>(scissor_x); |
+ params[1] = static_cast<GLint>(scissor_y); |
+ params[2] = static_cast<GLint>(scissor_width); |
+ params[3] = static_cast<GLint>(scissor_height); |
} |
return true; |
- case GL_STENCIL_FAIL: |
+ case GL_POLYGON_OFFSET_FACTOR: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_front_fail_op); |
+ params[0] = static_cast<GLint>(polygon_offset_factor); |
} |
return true; |
- case GL_STENCIL_PASS_DEPTH_FAIL: |
+ case GL_POLYGON_OFFSET_UNITS: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_front_z_fail_op); |
+ params[0] = static_cast<GLint>(polygon_offset_units); |
} |
return true; |
- case GL_STENCIL_PASS_DEPTH_PASS: |
+ case GL_SAMPLE_COVERAGE_VALUE: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_front_z_pass_op); |
+ params[0] = static_cast<GLint>(sample_coverage_value); |
} |
return true; |
- case GL_STENCIL_BACK_FAIL: |
+ case GL_SAMPLE_COVERAGE_INVERT: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_back_fail_op); |
+ params[0] = static_cast<GLint>(sample_coverage_invert); |
} |
return true; |
- case GL_STENCIL_BACK_PASS_DEPTH_FAIL: |
+ case GL_STENCIL_FUNC: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_back_z_fail_op); |
+ params[0] = static_cast<GLint>(stencil_front_func); |
} |
return true; |
- case GL_STENCIL_BACK_PASS_DEPTH_PASS: |
+ case GL_STENCIL_REF: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_back_z_pass_op); |
+ params[0] = static_cast<GLint>(stencil_front_ref); |
} |
return true; |
- case GL_SCISSOR_BOX: |
- *num_written = 4; |
+ case GL_STENCIL_VALUE_MASK: |
+ *num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(scissor_x); |
- params[1] = static_cast<GLint>(scissor_y); |
- params[2] = static_cast<GLint>(scissor_width); |
- params[3] = static_cast<GLint>(scissor_height); |
+ params[0] = static_cast<GLint>(stencil_front_mask); |
} |
return true; |
- case GL_FRONT_FACE: |
+ case GL_STENCIL_BACK_FUNC: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(front_face); |
+ params[0] = static_cast<GLint>(stencil_back_func); |
} |
return true; |
- case GL_SAMPLE_COVERAGE_VALUE: |
+ case GL_STENCIL_BACK_REF: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(sample_coverage_value); |
+ params[0] = static_cast<GLint>(stencil_back_ref); |
} |
return true; |
- case GL_SAMPLE_COVERAGE_INVERT: |
+ case GL_STENCIL_BACK_VALUE_MASK: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(sample_coverage_invert); |
+ params[0] = static_cast<GLint>(stencil_back_mask); |
} |
return true; |
- case GL_POLYGON_OFFSET_FACTOR: |
+ case GL_BLEND_SRC_RGB: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(polygon_offset_factor); |
+ params[0] = static_cast<GLint>(blend_source_rgb); |
} |
return true; |
- case GL_POLYGON_OFFSET_UNITS: |
+ case GL_BLEND_DST_RGB: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(polygon_offset_units); |
+ params[0] = static_cast<GLint>(blend_dest_rgb); |
} |
return true; |
- case GL_CULL_FACE_MODE: |
+ case GL_BLEND_SRC_ALPHA: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(cull_mode); |
+ params[0] = static_cast<GLint>(blend_source_alpha); |
} |
return true; |
- case GL_DEPTH_FUNC: |
+ case GL_BLEND_DST_ALPHA: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(depth_func); |
+ params[0] = static_cast<GLint>(blend_dest_alpha); |
} |
return true; |
- case GL_STENCIL_FUNC: |
+ case GL_DEPTH_FUNC: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_front_func); |
+ params[0] = static_cast<GLint>(depth_func); |
} |
return true; |
- case GL_STENCIL_REF: |
+ case GL_DEPTH_WRITEMASK: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_front_ref); |
+ params[0] = static_cast<GLint>(depth_mask); |
} |
return true; |
- case GL_STENCIL_VALUE_MASK: |
+ case GL_STENCIL_FAIL: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_front_mask); |
+ params[0] = static_cast<GLint>(stencil_front_fail_op); |
} |
return true; |
- case GL_STENCIL_BACK_FUNC: |
+ case GL_STENCIL_PASS_DEPTH_FAIL: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_back_func); |
+ params[0] = static_cast<GLint>(stencil_front_z_fail_op); |
} |
return true; |
- case GL_STENCIL_BACK_REF: |
+ case GL_STENCIL_PASS_DEPTH_PASS: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_back_ref); |
+ params[0] = static_cast<GLint>(stencil_front_z_pass_op); |
} |
return true; |
- case GL_STENCIL_BACK_VALUE_MASK: |
+ case GL_STENCIL_BACK_FAIL: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_back_mask); |
+ params[0] = static_cast<GLint>(stencil_back_fail_op); |
} |
return true; |
- case GL_DEPTH_WRITEMASK: |
+ case GL_STENCIL_BACK_PASS_DEPTH_FAIL: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(depth_mask); |
+ params[0] = static_cast<GLint>(stencil_back_z_fail_op); |
} |
return true; |
- case GL_BLEND_EQUATION_RGB: |
+ case GL_STENCIL_BACK_PASS_DEPTH_PASS: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(blend_equation_rgb); |
+ params[0] = static_cast<GLint>(stencil_back_z_pass_op); |
} |
return true; |
- case GL_BLEND_EQUATION_ALPHA: |
+ case GL_FRONT_FACE: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(blend_equation_alpha); |
+ params[0] = static_cast<GLint>(front_face); |
} |
return true; |
- case GL_STENCIL_WRITEMASK: |
+ case GL_BLEND_EQUATION_RGB: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_front_writemask); |
+ params[0] = static_cast<GLint>(blend_equation_rgb); |
} |
return true; |
- case GL_STENCIL_BACK_WRITEMASK: |
+ case GL_BLEND_EQUATION_ALPHA: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLint>(stencil_back_writemask); |
+ params[0] = static_cast<GLint>(blend_equation_alpha); |
} |
return true; |
case GL_BLEND: |
@@ -473,37 +489,28 @@ bool ContextState::GetStateAsGLint( |
bool ContextState::GetStateAsGLfloat( |
GLenum pname, GLfloat* params, GLsizei* num_written) const { |
switch (pname) { |
- case GL_VIEWPORT: |
- *num_written = 4; |
- if (params) { |
- params[0] = static_cast<GLfloat>(viewport_x); |
- params[1] = static_cast<GLfloat>(viewport_y); |
- params[2] = static_cast<GLfloat>(viewport_width); |
- params[3] = static_cast<GLfloat>(viewport_height); |
- } |
- return true; |
- case GL_BLEND_SRC_RGB: |
+ case GL_GENERATE_MIPMAP_HINT: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(blend_source_rgb); |
+ params[0] = static_cast<GLfloat>(hint_generate_mipmap); |
} |
return true; |
- case GL_BLEND_DST_RGB: |
+ case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(blend_dest_rgb); |
+ params[0] = static_cast<GLfloat>(hint_fragment_shader_derivative); |
} |
return true; |
- case GL_BLEND_SRC_ALPHA: |
+ case GL_DEPTH_CLEAR_VALUE: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(blend_source_alpha); |
+ params[0] = static_cast<GLfloat>(depth_clear); |
} |
return true; |
- case GL_BLEND_DST_ALPHA: |
+ case GL_CULL_FACE_MODE: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(blend_dest_alpha); |
+ params[0] = static_cast<GLfloat>(cull_mode); |
} |
return true; |
case GL_LINE_WIDTH: |
@@ -527,16 +534,37 @@ bool ContextState::GetStateAsGLfloat( |
params[0] = static_cast<GLfloat>(stencil_clear); |
} |
return true; |
- case GL_GENERATE_MIPMAP_HINT: |
+ case GL_PACK_ALIGNMENT: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(hint_generate_mipmap); |
+ params[0] = static_cast<GLfloat>(pack_alignment); |
} |
return true; |
- case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: |
+ case GL_UNPACK_ALIGNMENT: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(hint_fragment_shader_derivative); |
+ params[0] = static_cast<GLfloat>(unpack_alignment); |
+ } |
+ return true; |
+ case GL_STENCIL_WRITEMASK: |
+ *num_written = 1; |
+ if (params) { |
+ params[0] = static_cast<GLfloat>(stencil_front_writemask); |
+ } |
+ return true; |
+ case GL_STENCIL_BACK_WRITEMASK: |
+ *num_written = 1; |
+ if (params) { |
+ params[0] = static_cast<GLfloat>(stencil_back_writemask); |
+ } |
+ return true; |
+ case GL_VIEWPORT: |
+ *num_written = 4; |
+ if (params) { |
+ params[0] = static_cast<GLfloat>(viewport_x); |
+ params[1] = static_cast<GLfloat>(viewport_y); |
+ params[2] = static_cast<GLfloat>(viewport_width); |
+ params[3] = static_cast<GLfloat>(viewport_height); |
} |
return true; |
case GL_COLOR_WRITEMASK: |
@@ -564,163 +592,163 @@ bool ContextState::GetStateAsGLfloat( |
params[1] = static_cast<GLfloat>(z_far); |
} |
return true; |
- case GL_DEPTH_CLEAR_VALUE: |
- *num_written = 1; |
+ case GL_SCISSOR_BOX: |
+ *num_written = 4; |
if (params) { |
- params[0] = static_cast<GLfloat>(depth_clear); |
+ params[0] = static_cast<GLfloat>(scissor_x); |
+ params[1] = static_cast<GLfloat>(scissor_y); |
+ params[2] = static_cast<GLfloat>(scissor_width); |
+ params[3] = static_cast<GLfloat>(scissor_height); |
} |
return true; |
- case GL_STENCIL_FAIL: |
+ case GL_POLYGON_OFFSET_FACTOR: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_front_fail_op); |
+ params[0] = static_cast<GLfloat>(polygon_offset_factor); |
} |
return true; |
- case GL_STENCIL_PASS_DEPTH_FAIL: |
+ case GL_POLYGON_OFFSET_UNITS: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_front_z_fail_op); |
+ params[0] = static_cast<GLfloat>(polygon_offset_units); |
} |
return true; |
- case GL_STENCIL_PASS_DEPTH_PASS: |
+ case GL_SAMPLE_COVERAGE_VALUE: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_front_z_pass_op); |
+ params[0] = static_cast<GLfloat>(sample_coverage_value); |
} |
return true; |
- case GL_STENCIL_BACK_FAIL: |
+ case GL_SAMPLE_COVERAGE_INVERT: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_back_fail_op); |
+ params[0] = static_cast<GLfloat>(sample_coverage_invert); |
} |
return true; |
- case GL_STENCIL_BACK_PASS_DEPTH_FAIL: |
+ case GL_STENCIL_FUNC: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_back_z_fail_op); |
+ params[0] = static_cast<GLfloat>(stencil_front_func); |
} |
return true; |
- case GL_STENCIL_BACK_PASS_DEPTH_PASS: |
+ case GL_STENCIL_REF: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_back_z_pass_op); |
+ params[0] = static_cast<GLfloat>(stencil_front_ref); |
} |
return true; |
- case GL_SCISSOR_BOX: |
- *num_written = 4; |
+ case GL_STENCIL_VALUE_MASK: |
+ *num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(scissor_x); |
- params[1] = static_cast<GLfloat>(scissor_y); |
- params[2] = static_cast<GLfloat>(scissor_width); |
- params[3] = static_cast<GLfloat>(scissor_height); |
+ params[0] = static_cast<GLfloat>(stencil_front_mask); |
} |
return true; |
- case GL_FRONT_FACE: |
+ case GL_STENCIL_BACK_FUNC: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(front_face); |
+ params[0] = static_cast<GLfloat>(stencil_back_func); |
} |
return true; |
- case GL_SAMPLE_COVERAGE_VALUE: |
+ case GL_STENCIL_BACK_REF: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(sample_coverage_value); |
+ params[0] = static_cast<GLfloat>(stencil_back_ref); |
} |
return true; |
- case GL_SAMPLE_COVERAGE_INVERT: |
+ case GL_STENCIL_BACK_VALUE_MASK: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(sample_coverage_invert); |
+ params[0] = static_cast<GLfloat>(stencil_back_mask); |
} |
return true; |
- case GL_POLYGON_OFFSET_FACTOR: |
+ case GL_BLEND_SRC_RGB: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(polygon_offset_factor); |
+ params[0] = static_cast<GLfloat>(blend_source_rgb); |
} |
return true; |
- case GL_POLYGON_OFFSET_UNITS: |
+ case GL_BLEND_DST_RGB: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(polygon_offset_units); |
+ params[0] = static_cast<GLfloat>(blend_dest_rgb); |
} |
return true; |
- case GL_CULL_FACE_MODE: |
+ case GL_BLEND_SRC_ALPHA: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(cull_mode); |
+ params[0] = static_cast<GLfloat>(blend_source_alpha); |
} |
return true; |
- case GL_DEPTH_FUNC: |
+ case GL_BLEND_DST_ALPHA: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(depth_func); |
+ params[0] = static_cast<GLfloat>(blend_dest_alpha); |
} |
return true; |
- case GL_STENCIL_FUNC: |
+ case GL_DEPTH_FUNC: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_front_func); |
+ params[0] = static_cast<GLfloat>(depth_func); |
} |
return true; |
- case GL_STENCIL_REF: |
+ case GL_DEPTH_WRITEMASK: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_front_ref); |
+ params[0] = static_cast<GLfloat>(depth_mask); |
} |
return true; |
- case GL_STENCIL_VALUE_MASK: |
+ case GL_STENCIL_FAIL: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_front_mask); |
+ params[0] = static_cast<GLfloat>(stencil_front_fail_op); |
} |
return true; |
- case GL_STENCIL_BACK_FUNC: |
+ case GL_STENCIL_PASS_DEPTH_FAIL: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_back_func); |
+ params[0] = static_cast<GLfloat>(stencil_front_z_fail_op); |
} |
return true; |
- case GL_STENCIL_BACK_REF: |
+ case GL_STENCIL_PASS_DEPTH_PASS: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_back_ref); |
+ params[0] = static_cast<GLfloat>(stencil_front_z_pass_op); |
} |
return true; |
- case GL_STENCIL_BACK_VALUE_MASK: |
+ case GL_STENCIL_BACK_FAIL: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_back_mask); |
+ params[0] = static_cast<GLfloat>(stencil_back_fail_op); |
} |
return true; |
- case GL_DEPTH_WRITEMASK: |
+ case GL_STENCIL_BACK_PASS_DEPTH_FAIL: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(depth_mask); |
+ params[0] = static_cast<GLfloat>(stencil_back_z_fail_op); |
} |
return true; |
- case GL_BLEND_EQUATION_RGB: |
+ case GL_STENCIL_BACK_PASS_DEPTH_PASS: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(blend_equation_rgb); |
+ params[0] = static_cast<GLfloat>(stencil_back_z_pass_op); |
} |
return true; |
- case GL_BLEND_EQUATION_ALPHA: |
+ case GL_FRONT_FACE: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(blend_equation_alpha); |
+ params[0] = static_cast<GLfloat>(front_face); |
} |
return true; |
- case GL_STENCIL_WRITEMASK: |
+ case GL_BLEND_EQUATION_RGB: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_front_writemask); |
+ params[0] = static_cast<GLfloat>(blend_equation_rgb); |
} |
return true; |
- case GL_STENCIL_BACK_WRITEMASK: |
+ case GL_BLEND_EQUATION_ALPHA: |
*num_written = 1; |
if (params) { |
- params[0] = static_cast<GLfloat>(stencil_back_writemask); |
+ params[0] = static_cast<GLfloat>(blend_equation_alpha); |
} |
return true; |
case GL_BLEND: |