瀏覽代碼

LibWeb/WebGL: Remove FIXME from isContextLost() IDL method

Currently this function always returns false, but that's better than
not having it at all.
Aliaksandr Kalenik 8 月之前
父節點
當前提交
11ddc88ed7

+ 1 - 1
Libraries/LibWeb/WebGL/WebGLRenderingContextBase.idl

@@ -39,7 +39,7 @@ interface mixin WebGLRenderingContextBase {
     [FIXME] attribute PredefinedColorSpace unpackColorSpace;
 
     WebGLContextAttributes? getContextAttributes();
-    [FIXME] boolean isContextLost();
+    boolean isContextLost();
 
     sequence<DOMString>? getSupportedExtensions();
     object? getExtension(DOMString name);

+ 1 - 1
Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWebGLRenderingContext.cpp

@@ -345,7 +345,7 @@ public:
             continue;
         }
 
-        if (function.name == "getSupportedExtensions"sv || function.name == "getExtension"sv || function.name == "getContextAttributes"sv) {
+        if (function.name == "getSupportedExtensions"sv || function.name == "getExtension"sv || function.name == "getContextAttributes"sv || function.name == "isContextLost"sv) {
             // Implemented in WebGLRenderingContext
             continue;
         }