vlc | branch: master | Thomas Guillem <[email protected]> | 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");

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to