mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Implement WebGL extension OES_standard_derivatives
This commit is contained in:
Notes:
github-actions[bot]
2025-11-06 18:04:25 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/d4ac9fc5c62 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6711 Reviewed-by: https://github.com/awesomekling
@@ -1236,8 +1236,8 @@ JS::Value WebGLRenderingContextImpl::get_parameter(WebIDL::UnsignedLong pname)
|
||||
return JS::Int32Array::create(m_realm, 4, array_buffer);
|
||||
}
|
||||
|
||||
case GL_FRAGMENT_SHADER_DERIVATIVE_HINT: {
|
||||
if (m_context->webgl_version() == OpenGLContext::WebGLVersion::WebGL2) { // FIXME: Allow this code path for GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES
|
||||
case GL_FRAGMENT_SHADER_DERIVATIVE_HINT: { // NOTE: This has the same value as GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES
|
||||
if (oes_standard_derivatives_extension_enabled() || m_context->webgl_version() == OpenGLContext::WebGLVersion::WebGL2) {
|
||||
GLint result { 0 };
|
||||
glGetIntegervRobustANGLE(GL_FRAGMENT_SHADER_DERIVATIVE_HINT, 1, nullptr, &result);
|
||||
return JS::Value(result);
|
||||
|
||||
Reference in New Issue
Block a user