mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
b=705022; make GL layers work on Windows; r=bjacob
This commit is contained in:
parent
7437e16b8c
commit
b8077c2b8c
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user