[vlc-commits] direct3d9: glconv: use a render target
Thomas Guillem
git at videolan.org
Tue Nov 14 13:37:11 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov 14 13:28:09 2017 +0100| [6068eb03647d9052b0393951413f0b91fed92a0a] | committer: Thomas Guillem
direct3d9: glconv: use a render target
This fixes StrecthRect errors with 4K samples.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6068eb03647d9052b0393951413f0b91fed92a0a
---
modules/video_output/win32/direct3d9.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 0d81a6b35f..82634eef1a 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -2159,13 +2159,12 @@ GLConvOpen(vlc_object_t *obj)
HRESULT hr;
HANDLE shared_handle = NULL;
- hr = IDirect3DDevice9_CreateOffscreenPlainSurface(priv->d3dctx.dev,
- tc->fmt.i_width,
- tc->fmt.i_height,
- D3DFMT_X8R8G8B8,
- D3DPOOL_DEFAULT,
- &priv->dx_render,
- &shared_handle);
+ hr = IDirect3DDevice9Ex_CreateRenderTarget(priv->d3dctx.devex,
+ tc->fmt.i_width,
+ tc->fmt.i_height,
+ D3DFMT_X8R8G8B8,
+ D3DMULTISAMPLE_NONE, 0, FALSE,
+ &priv->dx_render, &shared_handle);
if (FAILED(hr))
{
msg_Warn(obj, "IDirect3DDevice9_CreateOffscreenPlainSurface failed");
More information about the vlc-commits
mailing list