1From a83791a0583459fb5048704a50643b85b840c426 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Fri, 17 Apr 2020 22:48:12 +0800
4Subject: [PATCH 3/4] ozone: gl_surface_egl_qt: Initialize EGL extension
5 bindings
6
7Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
8---
9 src/core/ozone/gl_surface_egl_qt.cpp | 4 ++++
10 1 file changed, 4 insertions(+)
11
12diff --git a/src/core/ozone/gl_surface_egl_qt.cpp b/src/core/ozone/gl_surface_egl_qt.cpp
13index 91402ab..5ace8c7 100644
14--- a/src/core/ozone/gl_surface_egl_qt.cpp
15+++ b/src/core/ozone/gl_surface_egl_qt.cpp
16@@ -120,6 +120,10 @@ bool GLSurfaceEGLQt::InitializeOneOff()
17
18 bool GLSurfaceEGLQt::InitializeExtensionSettingsOneOff()
19 {
20+    if (!s_initialized)
21+        return false;
22+
23+    g_driver_egl.InitializeExtensionBindings();
24     return s_initialized;
25 }
26
27--
282.20.1
29
30