mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +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:
parent
ffe304e88b
commit
61a2e59d87
5 changed files with 70 additions and 16 deletions
|
@ -7,7 +7,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Vector.h>
|
||||
#include <GL/gl.h>
|
||||
#ifdef AK_OS_MACOS
|
||||
# define GL_SILENCE_DEPRECATION
|
||||
# include <OpenGL/OpenGL.h>
|
||||
# include <OpenGL/gl3.h>
|
||||
#else
|
||||
# include <GL/gl.h>
|
||||
#endif
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
namespace AccelGfx::GL {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue