LibGL: Stub glStencilMask
Xash3D requires this otherwise it will crash with a jump to nullptr, but it doesn't use it for anything interesting and just sets a default value of ~0 during initialization.
This commit is contained in:
parent
cba1972deb
commit
53d6e1600c
Notes:
sideshowbarker
2024-07-17 21:01:46 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/53d6e1600c2 Pull-request: https://github.com/SerenityOS/serenity/pull/11824 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/Quaker762 ✅ Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/sunverwerth ✅
2 changed files with 6 additions and 0 deletions
|
@ -584,6 +584,7 @@ GLAPI void glStencilFunc(GLenum func, GLint ref, GLuint mask);
|
|||
GLAPI void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
|
||||
GLAPI void glStencilOp(GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||
GLAPI void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||
GLAPI void glStencilMask(GLuint mask);
|
||||
GLAPI void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
|
||||
GLAPI void glNormal3fv(GLfloat const* v);
|
||||
GLAPI void glNormalPointer(GLenum type, GLsizei stride, void const* pointer);
|
||||
|
|
|
@ -33,3 +33,8 @@ void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass
|
|||
{
|
||||
g_gl_context->gl_stencil_op_separate(face, sfail, dpfail, dppass);
|
||||
}
|
||||
|
||||
void glStencilMask(GLuint mask)
|
||||
{
|
||||
dbgln("(STUBBED) glStencilMask(0x{:08x})", mask);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue