summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/SoftwareGLContext.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-01-16 02:13:07 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-17 12:49:00 +0100
commit638667194438416527b267065e1077a747208c35 (patch)
treea60669b9042ef008fec09b4392026b96bdcdae2a /Userland/Libraries/LibGL/SoftwareGLContext.h
parent3609ffc4508f65349f28fca2bad816e771f1df9e (diff)
downloadserenity-638667194438416527b267065e1077a747208c35.zip
LibGL: Convert stencil front/back function and operation to `Array`s
Diffstat (limited to 'Userland/Libraries/LibGL/SoftwareGLContext.h')
-rw-r--r--Userland/Libraries/LibGL/SoftwareGLContext.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.h b/Userland/Libraries/LibGL/SoftwareGLContext.h
index e2175e3ac5..5494642944 100644
--- a/Userland/Libraries/LibGL/SoftwareGLContext.h
+++ b/Userland/Libraries/LibGL/SoftwareGLContext.h
@@ -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;