Commit 5b072780 by Geoff Lang

Fix DisplayD3D not initializing mRenderer.

BUG=angle:658 Change-Id: If865910d52154f574f4d488d4c45fcac9a87b050 Reviewed-on: https://chromium-review.googlesource.com/234761Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 932b465b
...@@ -32,6 +32,11 @@ SurfaceImpl *DisplayD3D::createOffscreenSurface(egl::Display *display, const egl ...@@ -32,6 +32,11 @@ SurfaceImpl *DisplayD3D::createOffscreenSurface(egl::Display *display, const egl
width, height, textureFormat, textureTarget); width, height, textureFormat, textureTarget);
} }
DisplayD3D::DisplayD3D(rx::RendererD3D *renderer)
: mRenderer(renderer)
{
}
egl::Error DisplayD3D::restoreLostDevice() egl::Error DisplayD3D::restoreLostDevice()
{ {
// Release surface resources to make the Reset() succeed // Release surface resources to make the Reset() succeed
......
...@@ -18,7 +18,7 @@ class RendererD3D; ...@@ -18,7 +18,7 @@ class RendererD3D;
class DisplayD3D : public DisplayImpl class DisplayD3D : public DisplayImpl
{ {
public: public:
DisplayD3D(rx::RendererD3D *renderer) {} DisplayD3D(rx::RendererD3D *renderer);
SurfaceImpl *createWindowSurface(egl::Display *display, const egl::Config *config, SurfaceImpl *createWindowSurface(egl::Display *display, const egl::Config *config,
EGLNativeWindowType window, EGLint fixedSize, EGLNativeWindowType window, EGLint fixedSize,
EGLint width, EGLint height, EGLint postSubBufferSupported) override; EGLint width, EGLint height, EGLint postSubBufferSupported) override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment