summaryrefslogtreecommitdiffstats
path: root/src/hardwareintegration/compositor/brcm-egl/brcmbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardwareintegration/compositor/brcm-egl/brcmbuffer.h')
-rw-r--r--src/hardwareintegration/compositor/brcm-egl/brcmbuffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hardwareintegration/compositor/brcm-egl/brcmbuffer.h b/src/hardwareintegration/compositor/brcm-egl/brcmbuffer.h
index 3028fbed5..83545de2e 100644
--- a/src/hardwareintegration/compositor/brcm-egl/brcmbuffer.h
+++ b/src/hardwareintegration/compositor/brcm-egl/brcmbuffer.h
@@ -41,6 +41,7 @@
#define BRCMBUFFER_H
#include <QtWaylandCompositor/private/qwayland-server-wayland.h>
+#include <QtWaylandCompositor/private/qwaylandutils_p.h>
#include <QtCore/QSize>
#include <QtCore/QVector>
@@ -62,7 +63,7 @@ public:
QSize size() { return m_size; }
- static BrcmBuffer *fromResource(struct ::wl_resource *resource) { return static_cast<BrcmBuffer*>(Resource::fromResource(resource)->buffer_object); }
+ static BrcmBuffer *fromResource(struct ::wl_resource *resource) { return QtWayland::fromResource<BrcmBuffer *>(resource); }
protected:
void buffer_destroy_resource(Resource *resource) override;