Changeset 250c38916b1c085a7b271da0f383862610ec2b7b

Show
Ignore:
Timestamp:
02/01/08 23:55:38 (1 year ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1199314538 +0000
git-parent:

[d37c8970e7c2573051a291eec055c4b91767d417]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1199314538 +0000
Message:

video_output/opengllayer.m: Don't use AGP texturing until we get a proper frames lifo stack. Set to the layer synchronous, and call setNeedsDisplay when needed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_output/opengllayer.m

    r5452eae r250c389  
    314314 
    315315    p_sys->b_frame_available = 1; 
     316    [p_sys->o_layer setNeedsDisplay]; 
    316317} 
    317318 
     
    367368        glEnable( GL_UNPACK_CLIENT_STORAGE_APPLE ); 
    368369        glPixelStorei( GL_UNPACK_CLIENT_STORAGE_APPLE, GL_TRUE ); 
    369 #endif 
    370370 
    371371        /* Use AGP texturing */ 
    372372        glTexParameteri( VLCGL_TARGET, GL_TEXTURE_STORAGE_HINT_APPLE, 
    373373                         GL_STORAGE_SHARED_APPLE ); 
     374#endif 
     375 
    374376        /* Call glTexImage2D only once, and use glTexSubImage2D later */ 
    375377        glTexImage2D( VLCGL_TARGET, 0, 3, p_sys->i_tex_width, 
     
    408410    if( me ) 
    409411    { 
    410         me.asynchronous = YES
     412        me.asynchronous = NO
    411413        [me setVout: _p_vout]; 
    412414        me.bounds = CGRectMake( 0.0, 0.0,  
     
    420422{ 
    421423    /* Only draw the frame when if have a frame that was previously rendered */ 
    422     return p_vout->p_sys->b_frame_available; 
     424    BOOL ret = p_vout->p_sys->b_frame_available; 
     425    p_vout->p_sys->b_frame_available = VLC_FALSE; 
     426    return ret; 
    423427} 
    424428