diff options
Diffstat (limited to 'include/cru/win/graphics/direct/WindowRenderTarget.hpp')
-rw-r--r-- | include/cru/win/graphics/direct/WindowRenderTarget.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/win/graphics/direct/WindowRenderTarget.hpp b/include/cru/win/graphics/direct/WindowRenderTarget.hpp index 4774a1d3..6b775241 100644 --- a/include/cru/win/graphics/direct/WindowRenderTarget.hpp +++ b/include/cru/win/graphics/direct/WindowRenderTarget.hpp @@ -18,7 +18,7 @@ class CRU_WIN_GRAPHICS_DIRECT_API D2DWindowRenderTarget : public Object { return factory_; } - ID2D1DeviceContext* GetD2D1DeviceContext() { + ID2D1DeviceContext1* GetD2D1DeviceContext() { return d2d1_device_context_.Get(); } @@ -36,7 +36,7 @@ class CRU_WIN_GRAPHICS_DIRECT_API D2DWindowRenderTarget : public Object { private: DirectGraphicsFactory* factory_; HWND hwnd_; - Microsoft::WRL::ComPtr<ID2D1DeviceContext> d2d1_device_context_; + Microsoft::WRL::ComPtr<ID2D1DeviceContext1> d2d1_device_context_; Microsoft::WRL::ComPtr<IDXGISwapChain1> dxgi_swap_chain_; Microsoft::WRL::ComPtr<ID2D1Bitmap1> target_bitmap_; }; |