[vlc-commits] commit: Fix a warning ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Nov 8 19:13:59 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov  8 20:13:52 2010 +0200| [426d0fbdef1740235ae80db94733aace7226889c] | committer: Rémi Denis-Courmont 

Fix a warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=426d0fbdef1740235ae80db94733aace7226889c
---

 modules/video_output/opengl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 170f38c..0d07c69 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -425,7 +425,8 @@ int vout_display_opengl_Display(vout_display_opengl_t *vgl,
 #if VLCGL_TARGET == GL_TEXTURE_2D
     const float f_normw = vgl->tex_width;
     const float f_normh = vgl->tex_height;
-#elif VLCGL_TARGET == GL_TEXTURE_RECTANGLE_EXT
+#elif defined (GL_TEXTURE_RECTABLE_EXT) \
+   && (VLCGL_TARGET == GL_TEXTURE_RECTANGLE_EXT)
     const float f_normw = 1.0;
     const float f_normh = 1.0;
 #else



More information about the vlc-commits mailing list