int initDone;
}
-- (id) initWithFrame: (NSRect) frame vout: (vout_thread_t*) p_vout;
+- (id) initWithFrame: (NSRect) frame vout: (vout_thread_t*) p_vout;
- (void) initTextures;
- (void) reloadTexture: (int) index;
+- (void) cleanUp;
@end
{
vout_thread_t * p_vout = (vout_thread_t *)p_this;
+ if( p_vout->p_sys->i_opengl )
+ {
+ [p_vout->p_sys->o_glview cleanUp];
+ }
+
if( CoDestroyWindow( p_vout ) )
{
msg_Err( p_vout, "unable to destroy window" );
p_vout->p_sys->p_data[index] );
}
+- (void) cleanUp
+{
+ initDone = 0;
+}
+
- (void) drawQuad
{
glBegin( GL_QUADS );