1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibGL: Implement GL_NORMAL_ARRAY_TYPE context parameter

This is used by the Grim/Monkey4 engine in ScummVM.
This commit is contained in:
Jelle Raaijmakers 2022-08-24 15:29:11 +02:00 committed by Andreas Kling
parent 73f7f4656c
commit d7cfdfe633
2 changed files with 3 additions and 0 deletions

View file

@ -66,6 +66,8 @@ Optional<ContextParameter> GLContext::get_context_parameter(GLenum name)
return ContextParameter { .type = GL_INT, .value = { .integer_value = TEXTURE_MATRIX_STACK_LIMIT } };
case GL_MAX_TEXTURE_UNITS:
return ContextParameter { .type = GL_INT, .value = { .integer_value = static_cast<GLint>(m_texture_units.size()) } };
case GL_NORMAL_ARRAY_TYPE:
return ContextParameter { .type = GL_INT, .value = { .integer_value = GL_FLOAT } };
case GL_NORMALIZE:
return ContextParameter { .type = GL_BOOL, .is_capability = true, .value = { .boolean_value = m_normalize } };
case GL_PACK_ALIGNMENT: