Bug 226590 - Compile error in HTML canvas when both OpenGL and WebGL2 are used in GTKPlatform
Summary: Compile error in HTML canvas when both OpenGL and WebGL2 are used in GTKPlatform
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-03 10:41 PDT by Eleni Maria Stea
Modified: 2022-02-28 13:57 PST (History)
11 users (show)

See Also:


Attachments
Patch (1.67 KB, patch)
2021-06-03 10:55 PDT, Eleni Maria Stea
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.