Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 950903 - 8/8 - Make CanvasLayerD3D10 not try to use ANGLE shared …
Browse files Browse the repository at this point in the history
…handles with WGL - r=jgilbert
  • Loading branch information
Benoit Jacob committed Jan 7, 2014
1 parent 685b23a commit c953c6f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gfx/layers/d3d10/CanvasLayerD3D10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,15 @@ CanvasLayerD3D10::Initialize(const Data& aData)

SurfaceFactory_GL* factory = nullptr;
if (!mForceReadback) {
factory = SurfaceFactory_ANGLEShareHandle::Create(mGLContext,
device(),
screen->Caps());
if (mGLContext->IsANGLE()) {
factory = SurfaceFactory_ANGLEShareHandle::Create(mGLContext,
device(),
screen->Caps());
} else {
factory = new SurfaceFactory_GLTexture(mGLContext,
nullptr,
screen->Caps());
}
}

if (factory) {
Expand Down

0 comments on commit c953c6f

Please sign in to comment.