vlc/vlc-3.0 | branch: master | Thomas Guillem <[email protected]> | Mon Dec 11 
16:39:31 2017 +0100| [96f41ae62199582cc203100d5e62b390d9e7b7a3] | committer: 
Thomas Guillem

direct3d9: remove useless texture generation

It's already done by the vout_helper.

(cherry picked from commit 0dedb9e260c3bc3612ff6c04226348c339201bdb)
Signed-off-by: Thomas Guillem <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=96f41ae62199582cc203100d5e62b390d9e7b7a3
---

 modules/video_output/win32/direct3d9.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/modules/video_output/win32/direct3d9.c 
b/modules/video_output/win32/direct3d9.c
index ad75f2f9ef..4dbcbaadbd 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1860,14 +1860,6 @@ GLConvAllocateTextures(const opengl_tex_converter_t *tc, 
GLuint *textures,
 {
     VLC_UNUSED(tex_width); VLC_UNUSED(tex_height);
     struct glpriv *priv = tc->priv;
-    tc->vt->GenTextures(1, textures);
-
-    tc->vt->ActiveTexture(GL_TEXTURE0);
-    tc->vt->BindTexture(tc->tex_target, textures[0]);
-    tc->vt->TexParameteri(tc->tex_target, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
-    tc->vt->TexParameteri(tc->tex_target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
-    tc->vt->TexParameterf(tc->tex_target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
-    tc->vt->TexParameterf(tc->tex_target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
 
     priv->gl_render =
         priv->vt.DXRegisterObjectNV(priv->gl_handle_d3d, priv->dx_render,

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

Reply via email to