mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibGL: Support additional enums in glGetIntegerv
GL_MAX_TETXURE_UNITS: Returns the available units for multitexturing GL_MAX_TETXURE_SIZE: Returns the maximum width/height for textures
This commit is contained in:
parent
7c60f4bbab
commit
e34fc4e336
1 changed files with 6 additions and 0 deletions
|
@ -1418,6 +1418,12 @@ void SoftwareGLContext::gl_get_integerv(GLenum pname, GLint* data)
|
|||
case GL_BLEND_DST_ALPHA:
|
||||
*data = m_blend_destination_factor;
|
||||
break;
|
||||
case GL_MAX_TEXTURE_UNITS:
|
||||
*data = m_texture_units.size();
|
||||
break;
|
||||
case GL_MAX_TEXTURE_SIZE:
|
||||
*data = 4096;
|
||||
break;
|
||||
default:
|
||||
// According to the Khronos docs, we always return GL_INVALID_ENUM if we encounter a non-accepted value
|
||||
// for `pname`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue