16 std::vector<int> attribs;
18 attribs.emplace_back(EGL_CONTEXT_MAJOR_VERSION_KHR);
20 attribs.emplace_back(EGL_CONTEXT_MINOR_VERSION_KHR);
25 attribs.emplace_back(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR);
26 attribs.emplace_back(EGL_LOSE_CONTEXT_ON_RESET_KHR);
27 contextFlags |= EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR;
29 attribs.emplace_back(EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV);
30 attribs.emplace_back(GL_TRUE);
34 contextFlags |= EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR;
36 if (contextFlags != 0) {
37 attribs.emplace_back(EGL_CONTEXT_FLAGS_KHR);
38 attribs.emplace_back(contextFlags);
41 attribs.emplace_back(EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR);
43 attribs.emplace_back(EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR);
45 attribs.emplace_back(EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR);
49 attribs.emplace_back(EGL_CONTEXT_PRIORITY_LEVEL_IMG);
50 attribs.emplace_back(EGL_CONTEXT_PRIORITY_HIGH_IMG);
52 attribs.emplace_back(EGL_NONE);
58 std::vector<int> attribs;
59 attribs.emplace_back(EGL_CONTEXT_CLIENT_VERSION);
62 attribs.emplace_back(EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT);
63 attribs.emplace_back(EGL_TRUE);
64 attribs.emplace_back(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT);
65 attribs.emplace_back(EGL_LOSE_CONTEXT_ON_RESET_EXT);
67 attribs.emplace_back(EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV);
68 attribs.emplace_back(GL_TRUE);
72 attribs.emplace_back(EGL_CONTEXT_PRIORITY_LEVEL_IMG);
73 attribs.emplace_back(EGL_CONTEXT_PRIORITY_HIGH_IMG);
75 attribs.emplace_back(EGL_NONE);
std::vector< int > build() const override
std::vector< int > build() const override