aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-07-24 17:48:38 +0200
committerVaxry <[email protected]>2024-07-24 18:53:51 +0200
commitb16fb9770ca984fb4e0f44e188b0786180afb8ba (patch)
tree6de92c0decce1d10257089ab1b7d2f8a1c8cfc95 /src/render/OpenGL.hpp
parentf2b6ebbf5427c319c7b3c9621a98751598b360f9 (diff)
downloadHyprland-b16fb9770ca984fb4e0f44e188b0786180afb8ba.tar.gz
Hyprland-b16fb9770ca984fb4e0f44e188b0786180afb8ba.zip
egl: support getting the device via platform_device
a neat EXT
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index 712b87f3..5c4ee811 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -216,6 +216,7 @@ class CHyprOpenGLImpl {
gbm_device* m_pGbmDevice = nullptr;
EGLContext m_pEglContext = nullptr;
EGLDisplay m_pEglDisplay = nullptr;
+ EGLDeviceEXT m_pEglDevice = nullptr;
bool m_bReloadScreenShader = true; // at launch it can be set
@@ -280,6 +281,7 @@ class CHyprOpenGLImpl {
void initShaders();
void initDRMFormats();
void initEGL(bool gbm);
+ EGLDeviceEXT eglDeviceFromDRMFD(int drmFD);
//
std::optional<std::vector<uint64_t>> getModsForFormat(EGLint format);