зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1364169 - On ANGLE context creation asks for robustness but does not get it. r=jgilbert
--HG-- extra : rebase_source : a5233c815aa7e7b0f794c403e85d790478affee8
This commit is contained in:
Родитель
060e591797
Коммит
e6e5dce84e
|
@ -157,8 +157,16 @@ gl::Version GetClientVersion(const egl::AttributeMap &attribs)
|
|||
|
||||
GLenum GetResetStrategy(const egl::AttributeMap &attribs)
|
||||
{
|
||||
EGLAttrib attrib = attribs.get(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT,
|
||||
EGL_NO_RESET_NOTIFICATION_EXT);
|
||||
EGLAttrib attrib = attribs.get(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR, 0);
|
||||
if (!attrib)
|
||||
{
|
||||
attrib = attribs.get(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT, 0);
|
||||
}
|
||||
if (!attrib)
|
||||
{
|
||||
attrib = EGL_NO_RESET_NOTIFICATION;
|
||||
}
|
||||
|
||||
switch (attrib)
|
||||
{
|
||||
case EGL_NO_RESET_NOTIFICATION:
|
||||
|
|
Загрузка…
Ссылка в новой задаче