[vlc-devel] commit: opengllayer: Don't protect a module by #ifdef you' ll end up in warnings. Disable it at configure time if needed. (Pierre d' Herbemont )

git version control git at videolan.org
Thu Jun 12 19:49:46 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Thu Jun 12 19:47:11 2008 +0200| [67b654a45166f5ec078a0ac8dc6083ba50950814]

opengllayer: Don't protect a module by #ifdef you'll end up in warnings. Disable it at configure time if needed.

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

 modules/video_output/opengllayer.m |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/modules/video_output/opengllayer.m b/modules/video_output/opengllayer.m
index c6d8d2e..aed8602 100644
--- a/modules/video_output/opengllayer.m
+++ b/modules/video_output/opengllayer.m
@@ -44,8 +44,6 @@
 #import <Cocoa/Cocoa.h>
 #import <OpenGL/OpenGL.h>
 
-#ifdef CALayer
-
 /* On OS X, use GL_TEXTURE_RECTANGLE_EXT instead of GL_TEXTURE_2D.
    This allows sizes which are not powers of 2 */
 #define VLCGL_TARGET GL_TEXTURE_RECTANGLE_EXT
@@ -518,5 +516,3 @@ static int InitTextures( vout_thread_t *p_vout )
     CGLUnlockContext( glContext );
 }
 @end
-
-#endif




More information about the vlc-devel mailing list