opengllayer.m: Use AGP texturing.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 19 Dec 2007 22:28:22 +0000 (22:28 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 19 Dec 2007 22:28:22 +0000 (22:28 +0000)
modules/video_output/opengllayer.m

index 4be6e19..0b67ad7 100644 (file)
@@ -357,11 +357,11 @@ static int InitTextures( vout_thread_t *p_vout )
            our buffer */
         glEnable( GL_UNPACK_CLIENT_STORAGE_APPLE );
         glPixelStorei( GL_UNPACK_CLIENT_STORAGE_APPLE, GL_TRUE );
+#endif
 
         /* Use AGP texturing */
         glTexParameteri( VLCGL_TARGET, GL_TEXTURE_STORAGE_HINT_APPLE,
                          GL_STORAGE_SHARED_APPLE );
-#endif
         /* Call glTexImage2D only once, and use glTexSubImage2D later */
         glTexImage2D( VLCGL_TARGET, 0, 3, p_sys->i_tex_width,
                       p_sys->i_tex_height, 0, VLCGL_FORMAT, VLCGL_TYPE,