Bug 244331

Summary: TextureMapper: build error # use of undeclared identifier 'glEGLImageTargetTexture2DOES'
Product: WebKit Reporter: zhiyi <vulbugs>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, dino, Hironori.Fujii, kbr, kkinnunen, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: PC   
OS: Linux   

Description zhiyi 2022-08-25 02:21:56 PDT
Ubuntu 2204 
commit 5f7ece27c247ee41c0d6f2fe94763ceb49770f09 (HEAD -> main, origin/main, origin/HEAD)
Author: Commit Queue <commit-queue@webkit.org>
Date:   Wed Aug 24 19:09:49 2022 -0700


if you build webkit with the `-DENABLE_GLES2=ON` cmakeargs ,it will build faild .




/app/webkit/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerDmabuf.cpp:107:5: error: use of undeclared identifier 'glEGLImageTargetTexture2DOES'
    glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, image);
    ^
1 error generated.


/app/webkit/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyDMABuf.cpp:323:9: error: use of undeclared identifier 'glEGLImageTargetTexture2DOES'
        glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, data.image[i]);
        ^
1 error generated.
Comment 1 Radar WebKit Bug Importer 2022-09-01 02:22:15 PDT
<rdar://problem/99429114>
Comment 2 Fujii Hironori 2022-09-01 14:09:54 PDT
WebKitGTK has USE_OPENGL_OR_ES CMake option. But, it doesn't work now. See bug#232934.
Comment 3 Fujii Hironori 2022-09-01 14:12:37 PDT
Oops, I misread your comment#0. You want to build with OpenGL ES.