mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibGL: Don't crash on invalid pname value in glGetFloatv
This brings `glGetFloatv` more inline with the other `glGet` functions. We should prevent crashing in the driver as much as possible and instead let the application deal with the generated GL error.
This commit is contained in:
parent
ca9619c750
commit
68d895eb7c
Notes:
sideshowbarker
2024-07-18 05:29:30 +09:00
Author: https://github.com/Quaker762 Commit: https://github.com/SerenityOS/serenity/commit/68d895eb7c1 Pull-request: https://github.com/SerenityOS/serenity/pull/9512
1 changed files with 1 additions and 1 deletions
|
@ -1323,7 +1323,7 @@ void SoftwareGLContext::gl_get_floatv(GLenum pname, GLfloat* params)
|
|||
default:
|
||||
// FIXME: Because glQuake only requires GL_MODELVIEW_MATRIX, that is the only parameter
|
||||
// that we currently support. More parameters should be supported.
|
||||
TODO();
|
||||
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue