From 1f040d401d322cec9dc56c93e78899a429cb6e5a Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 16 Sep 2014 14:12:54 +0200 Subject: eglfs: Add support for systems without pbuffer support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use a small native window and window surface in case the hooks indicate that pbuffer support is not available. Change-Id: I6515309041f0e1e2f5321d59941f35d6ee16dca7 Reviewed-by: Louai Al-Khanji Reviewed-by: Jørgen Lind --- src/gui/kernel/qplatformopenglcontext.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/kernel/qplatformopenglcontext.cpp') diff --git a/src/gui/kernel/qplatformopenglcontext.cpp b/src/gui/kernel/qplatformopenglcontext.cpp index 527bfdd9838..bf0dccd4405 100644 --- a/src/gui/kernel/qplatformopenglcontext.cpp +++ b/src/gui/kernel/qplatformopenglcontext.cpp @@ -88,6 +88,16 @@ QPlatformOpenGLContext::~QPlatformOpenGLContext() { } +/*! + Called after a new instance is constructed. The default implementation does nothing. + + Subclasses can use this function to perform additional initialization that relies on + virtual functions. + */ +void QPlatformOpenGLContext::initialize() +{ +} + /*! Reimplement in subclass if your platform uses framebuffer objects for surfaces. -- cgit v1.2.3