Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinglutils_funcs.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 59 | if (value & GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB) { | |||
---|---|---|---|---|---|
60 | robustContext = true; | 60 | robustContext = true; | ||
61 | } | 61 | } | ||
62 | } else { | 62 | } else { | ||
63 | robustContext = true; | 63 | robustContext = true; | ||
64 | } | 64 | } | ||
65 | } | 65 | } | ||
66 | } | 66 | } | ||
67 | if (robustContext && haveArbRobustness) { | 67 | if (robustContext && haveArbRobustness) { | ||
68 | // See http://www.opengl.org/registry/specs/ARB/robustness.txt | 68 | // See https://www.opengl.org/registry/specs/ARB/robustness.txt | ||
69 | GL_RESOLVE_WITH_EXT(glGetGraphicsResetStatus, glGetGraphicsResetStatusARB); | 69 | GL_RESOLVE_WITH_EXT(glGetGraphicsResetStatus, glGetGraphicsResetStatusARB); | ||
70 | GL_RESOLVE_WITH_EXT(glReadnPixels, glReadnPixelsARB); | 70 | GL_RESOLVE_WITH_EXT(glReadnPixels, glReadnPixelsARB); | ||
71 | GL_RESOLVE_WITH_EXT(glGetnUniformfv, glGetnUniformfvARB); | 71 | GL_RESOLVE_WITH_EXT(glGetnUniformfv, glGetnUniformfvARB); | ||
72 | } else if (robustContext && haveExtRobustness) { | 72 | } else if (robustContext && haveExtRobustness) { | ||
73 | // See http://www.khronos.org/registry/gles/extensions/EXT/EXT_robustness.txt | 73 | // See https://www.khronos.org/registry/gles/extensions/EXT/EXT_robustness.txt | ||
74 | glGetGraphicsResetStatus = (glGetGraphicsResetStatus_func) resolveFunction("glGetGraphicsResetStatusEXT"); | 74 | glGetGraphicsResetStatus = (glGetGraphicsResetStatus_func) resolveFunction("glGetGraphicsResetStatusEXT"); | ||
75 | glReadnPixels = (glReadnPixels_func) resolveFunction("glReadnPixelsEXT"); | 75 | glReadnPixels = (glReadnPixels_func) resolveFunction("glReadnPixelsEXT"); | ||
76 | glGetnUniformfv = (glGetnUniformfv_func) resolveFunction("glGetnUniformfvEXT"); | 76 | glGetnUniformfv = (glGetnUniformfv_func) resolveFunction("glGetnUniformfvEXT"); | ||
77 | } else { | 77 | } else { | ||
78 | glGetGraphicsResetStatus = KWin::GetGraphicsResetStatus; | 78 | glGetGraphicsResetStatus = KWin::GetGraphicsResetStatus; | ||
79 | glReadnPixels = KWin::ReadnPixels; | 79 | glReadnPixels = KWin::ReadnPixels; | ||
80 | glGetnUniformfv = KWin::GetnUniformfv; | 80 | glGetnUniformfv = KWin::GetnUniformfv; | ||
81 | } | 81 | } | ||
Show All 21 Lines |