fn is_safari_and_webkit_gtk(gl: &web_sys::WebGlRenderingContext) -> bool {
    // This call produces a warning in Firefox ("WEBGL_debug_renderer_info is deprecated in Firefox and will be removed.")
    // but unless we call it we get errors in Chrome when we call `get_parameter` below.
    // TODO(emilk): do something smart based on user agent?
    if gl
        .get_extension("WEBGL_debug_renderer_info")
        .unwrap()
        .is_some()
    {
        if let Ok(renderer) =
            gl.get_parameter(web_sys::WebglDebugRendererInfo::UNMASKED_RENDERER_WEBGL)
        {
            if let Some(renderer) = renderer.as_string() {
                if renderer.contains("Apple") {
                    return true;
                }
            }
        }
    }

    false
}
/// detecting Safari and `webkitGTK`.
///
/// Safari and `webkitGTK` use unmasked renderer :Apple GPU
///
/// If we detect safari or `webkitGTKs` returns true.
///
/// This function used to avoid displaying linear color with `sRGB` supported systems.
detecting Safari and `webkitGTK`.
Safari and `webkitGTK` use unmasked renderer :Apple GPU

If we detect safari or `webkitGTKs` returns true.

This function used to avoid displaying linear color with `sRGB` supported systems.
detecting Safari and ` webkitGTK ` . Safari and ` webkitGTK ` use unmasked renderer : Apple GPU If we detect safari or ` webkitGTKs ` returns true . This function used to avoid displaying linear color with ` sRGB ` supported systems .
fn is_safari_and_webkit_gtk(gl: &web_sys::WebGlRenderingContext) -> bool {
    // This call produces a warning in Firefox ("WEBGL_debug_renderer_info is deprecated in Firefox and will be removed.")
    // but unless we call it we get errors in Chrome when we call `get_parameter` below.
    // TODO(emilk): do something smart based on user agent?
    if gl
        .get_extension("WEBGL_debug_renderer_info")
        .unwrap()
        .is_some()
    {
        if let Ok(renderer) =
            gl.get_parameter(web_sys::WebglDebugRendererInfo::UNMASKED_RENDERER_WEBGL)
        {
            if let Some(renderer) = renderer.as_string() {
                if renderer.contains("Apple") {
                    return true;
                }
            }
        }
    }
    false
}
fn is_safari_and_webkit_gtk ( gl : & web_sys :: WebGlRenderingContext ) -> bool { // This call produces a warning in Firefox ("WEBGL_debug_renderer_info is deprecated in Firefox and will be removed.") // but unless we call it we get errors in Chrome when we call `get_parameter` below. // TODO(emilk): do something smart based on user agent? if gl . get_extension ( " " ) . unwrap ( ) . is_some ( ) { if let Ok ( renderer ) = gl . get_parameter ( web_sys :: WebglDebugRendererInfo :: UNMASKED_RENDERER_WEBGL ) { if let Some ( renderer ) = renderer . as_string ( ) { if renderer . contains ( " " ) { return true ; } } } } false }
detecting Safari and `webkitGTK`.
detecting Safari and ` webkitGTK ` .
gl
&web_sys::WebGlRenderingContext
gl
&web_sys::WebGlRenderingContext