summaryrefslogtreecommitdiffstats
path: root/src/core/gl_surface_qt.cpp
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-07-07 17:19:49 +0200
committerAndras Becsi <andras.becsi@digia.com>2014-08-06 19:25:30 +0200
commitadcb7979a5f7193d1b8c6b87c0f2c92cfa80a316 (patch)
treea5e6aa33178b20b72d3487a8add6dc3aca0b9f9a /src/core/gl_surface_qt.cpp
parent3b1caeb21a66ca939854b897824e9e853ba60b67 (diff)
Remove duplicate code for egl extensions and native display querying
This is now possible through GLSurfaceQt, and GLContextHelper respectively. Change-Id: I06e13ccdea9737dc41b034befb4f01aa08d72c2a Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/core/gl_surface_qt.cpp')
-rw-r--r--src/core/gl_surface_qt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/gl_surface_qt.cpp b/src/core/gl_surface_qt.cpp
index d8d306c5c..a338fe5cd 100644
--- a/src/core/gl_surface_qt.cpp
+++ b/src/core/gl_surface_qt.cpp
@@ -316,6 +316,11 @@ GLSurfaceQt::GLSurfaceQt(const gfx::Size& size)
{
}
+bool GLSurfaceQt::HasEGLExtension(const char* name)
+{
+ return ExtensionsContain(g_extensions, name);
+}
+
GLSurfaceQtEGL::GLSurfaceQtEGL(const gfx::Size& size)
: GLSurfaceQt(size),
m_surfaceBuffer(0)