mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Request GLES version 2 interface. (flutter/engine#44504)
- SKIA requires at least GLES version 2.0 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
parent
31c639e955
commit
f0d7c4c4c2
@ -238,6 +238,8 @@ static UniqueGLFWwindowPtr CreateShareWindowForWindow(GLFWwindow* window) {
|
||||
glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);
|
||||
#if defined(__linux__)
|
||||
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API);
|
||||
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
|
||||
#endif
|
||||
GLFWwindow* share_window = glfwCreateWindow(1, 1, "", NULL, window);
|
||||
glfwDefaultWindowHints();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user