Changeset 250c38916b1c085a7b271da0f383862610ec2b7b
- 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
| r5452eae |
r250c389 |
|
| 314 | 314 | |
|---|
| 315 | 315 | p_sys->b_frame_available = 1; |
|---|
| | 316 | [p_sys->o_layer setNeedsDisplay]; |
|---|
| 316 | 317 | } |
|---|
| 317 | 318 | |
|---|
| … | … | |
| 367 | 368 | glEnable( GL_UNPACK_CLIENT_STORAGE_APPLE ); |
|---|
| 368 | 369 | glPixelStorei( GL_UNPACK_CLIENT_STORAGE_APPLE, GL_TRUE ); |
|---|
| 369 | | #endif |
|---|
| 370 | 370 | |
|---|
| 371 | 371 | /* Use AGP texturing */ |
|---|
| 372 | 372 | glTexParameteri( VLCGL_TARGET, GL_TEXTURE_STORAGE_HINT_APPLE, |
|---|
| 373 | 373 | GL_STORAGE_SHARED_APPLE ); |
|---|
| | 374 | #endif |
|---|
| | 375 | |
|---|
| 374 | 376 | /* Call glTexImage2D only once, and use glTexSubImage2D later */ |
|---|
| 375 | 377 | glTexImage2D( VLCGL_TARGET, 0, 3, p_sys->i_tex_width, |
|---|
| … | … | |
| 408 | 410 | if( me ) |
|---|
| 409 | 411 | { |
|---|
| 410 | | me.asynchronous = YES; |
|---|
| | 412 | me.asynchronous = NO; |
|---|
| 411 | 413 | [me setVout: _p_vout]; |
|---|
| 412 | 414 | me.bounds = CGRectMake( 0.0, 0.0, |
|---|
| … | … | |
| 420 | 422 | { |
|---|
| 421 | 423 | /* 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; |
|---|
| 423 | 427 | } |
|---|
| 424 | 428 | |
|---|