1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibAccelGfx+WebContent: Add GPU painter support on macOS

With these changes it is now possible to create OpenGL context on macOS
and run GPU-painter. For now only QT client has a CLI param that turns
it on though.
This commit is contained in:
Aliaksandr Kalenik 2023-11-12 14:18:00 +01:00 committed by Alexander Kalenik
parent ffe304e88b
commit 61a2e59d87
5 changed files with 70 additions and 16 deletions

View file

@ -12,3 +12,8 @@ if (OPENGL_FOUND)
else()
set(HAS_ACCELERATED_GRAPHICS OFF CACHE BOOL "" FORCE)
endif()
if (APPLE)
set(HAS_ACCELERATED_GRAPHICS ON CACHE BOOL "" FORCE)
set(ACCEL_GFX_LIBS "-framework OpenGL" CACHE STRING "" FORCE)
endif()