30 lines
848 B
Diff
30 lines
848 B
Diff
|
From a83791a0583459fb5048704a50643b85b840c426 Mon Sep 17 00:00:00 2001
|
||
|
From: Jeffy Chen <jeffy.chen@rock-chips.com>
|
||
|
Date: Fri, 17 Apr 2020 22:48:12 +0800
|
||
|
Subject: [PATCH 3/4] ozone: gl_surface_egl_qt: Initialize EGL extension
|
||
|
bindings
|
||
|
|
||
|
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
|
||
|
---
|
||
|
src/core/ozone/gl_surface_egl_qt.cpp | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/src/core/ozone/gl_surface_egl_qt.cpp b/src/core/ozone/gl_surface_egl_qt.cpp
|
||
|
index 91402ab..5ace8c7 100644
|
||
|
--- a/src/core/ozone/gl_surface_egl_qt.cpp
|
||
|
+++ b/src/core/ozone/gl_surface_egl_qt.cpp
|
||
|
@@ -120,6 +120,10 @@ bool GLSurfaceEGLQt::InitializeOneOff()
|
||
|
|
||
|
bool GLSurfaceEGLQt::InitializeExtensionSettingsOneOff()
|
||
|
{
|
||
|
+ if (!s_initialized)
|
||
|
+ return false;
|
||
|
+
|
||
|
+ g_driver_egl.InitializeExtensionBindings();
|
||
|
return s_initialized;
|
||
|
}
|
||
|
|
||
|
--
|
||
|
2.20.1
|
||
|
|