- Implemented EGL Context
This commit is contained in:
@@ -16,7 +16,12 @@
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
# ======================================================================================================================
|
||||
|
||||
find_package(OpenGL)
|
||||
if(FENNEC_GRAPHICS_WANT_EGL)
|
||||
find_package(OpenGL REQUIRED COMPONENTS EGL)
|
||||
message(STATUS "EGL Requested")
|
||||
else()
|
||||
find_package(OpenGL)
|
||||
endif()
|
||||
|
||||
if(TARGET OpenGL::GL) # Core OpenGL Desktop Profile
|
||||
list(APPEND FENNEC_LINK_LIBRARIES OpenGL::OpenGL)
|
||||
@@ -42,5 +47,6 @@ if(FENNEC_GRAPHICS_WANT_EGL)
|
||||
list(APPEND FENNEC_LINK_LIBRARIES OpenGL::EGL)
|
||||
list(APPEND FENNEC_COMPILE_DEFINITIONS FENNEC_GRAPHICS_EGL=1)
|
||||
list(APPEND FENNEC_EXTRA_SOURCES
|
||||
include/fennec/platform/opengl/egl/context.h source/platform/opengl/egl/context.cpp
|
||||
)
|
||||
endif()
|
||||
Reference in New Issue
Block a user