Skip to content

Commit

Permalink
Fix build of GLFence.cpp for !USE(LIBEPOXY)
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=273597

Reviewed by Adrian Perez de Castro and Miguel Gomez.

The OpenGL ES functions require version 3.

* Source/WebCore/PlatformPlayStation.cmake:
* Source/WebCore/PlatformWin.cmake:
* Source/WebCore/platform/graphics/egl/GLFence.cpp:

Canonical link: https://commits.webkit.org/278262@main
  • Loading branch information
donny-dont committed May 2, 2024
1 parent f69bdc3 commit a99db22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Source/WebCore/PlatformPlayStation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ list(APPEND WebCore_SOURCES
platform/graphics/egl/GLContext.cpp
platform/graphics/egl/GLContextLibWPE.cpp
platform/graphics/egl/GLContextWrapper.cpp
platform/graphics/egl/GLFence.cpp

platform/graphics/libwpe/PlatformDisplayLibWPE.cpp

Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/PlatformWin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ list(APPEND WebCore_SOURCES

platform/graphics/egl/GLContext.cpp
platform/graphics/egl/GLContextWrapper.cpp
platform/graphics/egl/GLFence.cpp

platform/graphics/opentype/OpenTypeUtilities.cpp

Expand Down
3 changes: 1 addition & 2 deletions Source/WebCore/platform/graphics/egl/GLFence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
#if USE(LIBEPOXY)
#include <epoxy/gl.h>
#else
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES3/gl3.h>
#endif

namespace WebCore {
Expand Down

0 comments on commit a99db22

Please sign in to comment.