b=705022; make GL layers work on Windows; r=bjacob

This commit is contained in:
Vladimir Vukicevic 2013-06-21 14:22:18 -04:00
parent 7437e16b8c
commit b8077c2b8c
2 changed files with 7 additions and 3 deletions

View File

@ -926,8 +926,12 @@ GLContext::UpdatePixelFormat()
MOZ_ASSERT(caps.color == !!format.blue);
MOZ_ASSERT(caps.alpha == !!format.alpha);
MOZ_ASSERT(caps.depth == !!format.depth);
MOZ_ASSERT(caps.stencil == !!format.stencil);
// These we either must have if they're requested, or
// we can have if they're not.
MOZ_ASSERT(caps.depth == !!format.depth || !caps.depth);
MOZ_ASSERT(caps.stencil == !!format.stencil || !caps.stencil);
MOZ_ASSERT(caps.antialias == (format.samples > 1));
#endif
mPixelFormat = new PixelBufferFormat(format);

View File

@ -585,7 +585,7 @@ CreatePBufferOffscreenContext(const gfxIntSize& aSize,
return nullptr;
}
SurfaceCaps dummyCaps = SurfaceCaps::Any();
SurfaceCaps dummyCaps = SurfaceCaps::Any();
nsRefPtr<GLContextWGL> glContext = new GLContextWGL(dummyCaps,
nullptr, true,
pbuffer,