Bug 226590

Summary: Compile error in HTML canvas when both OpenGL and WebGL2 are used in GTKPlatform
Product: WebKit Reporter: Eleni Maria Stea <estea>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: aperez, bugs-noreply, cdumez, changseok, dino, esprehn+autocc, estea, ews-watchlist, graouts, gyuyoung.kim, kondapallykalyan
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Eleni Maria Stea 2021-06-03 10:41:43 PDT
Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:

In function  WebGLRenderingContextBase::drawElements m_context is of type GraphicsContextGL which doesn't have any primitiveRestartIndex function. Context should be accessed as GraphicsContextGLOpenGL to call this function otherwise a compile error is generated.
Comment 1 Eleni Maria Stea 2021-06-03 10:55:34 PDT
Created attachment 430483 [details]
Patch
Comment 2 Adrian Perez 2022-02-28 13:57:02 PST
Patch not needed anymore, primitiveRestartIndex() is not used
anymore from WebCore these days.