1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:07:34 +00:00

LibGL: Convert stencil front/back function and operation to Arrays

This commit is contained in:
Jelle Raaijmakers 2022-01-16 02:13:07 +01:00 committed by Andreas Kling
parent 3609ffc450
commit 6386671944
2 changed files with 6 additions and 8 deletions

View file

@ -231,16 +231,14 @@ private:
GLint reference_value { 0 };
GLuint mask { NumericLimits<GLuint>::max() };
};
StencilFunctionOptions m_stencil_backfacing_func;
StencilFunctionOptions m_stencil_frontfacing_func;
Array<StencilFunctionOptions, 2u> m_stencil_function;
struct StencilOperationOptions {
GLenum op_fail { GL_KEEP };
GLenum op_depth_fail { GL_KEEP };
GLenum op_pass { GL_KEEP };
};
StencilOperationOptions m_stencil_backfacing_op;
StencilOperationOptions m_stencil_frontfacing_op;
Array<StencilOperationOptions, 2u> m_stencil_operation;
GLenum m_current_read_buffer = GL_BACK;
GLenum m_current_draw_buffer = GL_BACK;