diff options
Diffstat (limited to 'src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp')
-rw-r--r-- | src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp b/src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp index 80af227fb4..1f2709e06c 100644 --- a/src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp +++ b/src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp @@ -37,10 +37,11 @@ ** ****************************************************************************/ +#include <QDebug> #include "qopenvgoffscreensurface.h" #include <QtGui/QImage> -#include <QDebug> + QT_BEGIN_NAMESPACE @@ -71,7 +72,7 @@ QOpenVGOffscreenSurface::QOpenVGOffscreenSurface(const QSize &size) m_renderTarget = eglCreatePbufferFromClientBuffer(m_display, EGL_OPENVG_IMAGE, - (EGLClientBuffer)m_image, + reinterpret_cast<EGLClientBuffer>(uintptr_t(m_image)), pbufferConfig, 0); if (m_renderTarget == EGL_NO_SURFACE) |