зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267879 - Fix WGL robustness. - r=jrmuizel
MozReview-Commit-ID: IpstmnnGM0N
This commit is contained in:
Родитель
f989eff1a5
Коммит
4973d611f7
|
@ -204,7 +204,7 @@ WGLLibrary::EnsureInitialized()
|
|||
MOZ_ASSERT(extString);
|
||||
MOZ_ASSERT(HasExtension(extString, "WGL_ARB_extensions_string"));
|
||||
|
||||
if (HasExtension(extString, "WGL_ARB_context_create")) {
|
||||
if (HasExtension(extString, "WGL_ARB_create_context")) {
|
||||
if (GLLibraryLoader::LoadSymbols(mOGLLibrary, &robustnessSymbols[0], lookupFunc)) {
|
||||
if (HasExtension(extString, "WGL_ARB_create_context_robustness")) {
|
||||
mHasRobustness = true;
|
||||
|
@ -553,8 +553,8 @@ CreatePBufferOffscreenContext(CreateContextFlags flags, const IntSize& aSize,
|
|||
LOCAL_WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, LOCAL_WGL_LOSE_CONTEXT_ON_RESET_ARB,
|
||||
0
|
||||
};
|
||||
|
||||
context = wgl.fCreateContextAttribs(pbdc, aShareContext->Context(), attribs);
|
||||
const HGLRC shareHandle = (aShareContext ? aShareContext->Context() : 0);
|
||||
context = wgl.fCreateContextAttribs(pbdc, shareHandle, attribs);
|
||||
} else {
|
||||
context = wgl.fCreateContext(pbdc);
|
||||
if (context && aShareContext) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче