[vlc-commits] direct3d9: remove useless texture generation
Thomas Guillem
git at videolan.org
Tue Dec 12 09:21:00 CET 2017
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | 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 <thomas at gllm.fr>
> 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,
More information about the vlc-commits
mailing list