mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Use the robust ANGLE variant of getRenderbufferParameter
We use those everywhere else as those are more secure.
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 10:40:05 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/0810025f0e4 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6978 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/konradekk
@@ -1633,7 +1633,7 @@ JS::Value WebGLRenderingContextImpl::get_renderbuffer_parameter(WebIDL::Unsigned
|
||||
case GL_RENDERBUFFER_SAMPLES:
|
||||
case GL_RENDERBUFFER_STENCIL_SIZE: {
|
||||
GLint result = 0;
|
||||
glGetRenderbufferParameteriv(target, pname, &result);
|
||||
glGetRenderbufferParameterivRobustANGLE(target, pname, 1, nullptr, &result);
|
||||
return JS::Value(result);
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user