Bug 1267879 - Fix WGL robustness. - r=jrmuizel

MozReview-Commit-ID: IpstmnnGM0N
This commit is contained in:
Jeff Gilbert 2016-06-10 17:44:15 -07:00
Родитель f989eff1a5
Коммит 4973d611f7
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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) {