[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx: [440] trunk/fuse/fusepb/views/ DisplayOpenGL
Brought to you by:
fredm
|
From: <fr...@us...> - 2007-07-28 12:44:45
|
Revision: 440
http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=440&view=rev
Author: fredm
Date: 2007-07-28 05:44:41 -0700 (Sat, 28 Jul 2007)
Log Message:
-----------
Don't run the display link when the emulator is paused or we don't have a screen
texture initialised.
Modified Paths:
--------------
trunk/fuse/fusepb/views/DisplayOpenGLView.m
Modified: trunk/fuse/fusepb/views/DisplayOpenGLView.m
===================================================================
--- trunk/fuse/fusepb/views/DisplayOpenGLView.m 2007-07-28 03:39:33 UTC (rev 439)
+++ trunk/fuse/fusepb/views/DisplayOpenGLView.m 2007-07-28 12:44:41 UTC (rev 440)
@@ -249,11 +249,6 @@
NSLog( @"Callback created with error:%d", error );
return;
}
-
- error = CVDisplayLinkStart( displayLink );
- if( error ) {
- NSLog( @"error starting displayLink:%d", error );
- }
}
- (void)windowWillClose:(NSNotification *)notification
@@ -549,6 +544,11 @@
return;
}
+ CVReturn error = CVDisplayLinkStop( displayLink );
+ if( error ) {
+ NSLog( @"error starting displayLink:%d", error );
+ }
+
glDeleteTextures( MAX_SCREEN_BUFFERS, screenTexId );
for(i = 0; i < MAX_SCREEN_BUFFERS; i++)
{
@@ -609,6 +609,12 @@
screenTex[i].pixels );
}
screenTexInitialised = YES;
+
+ CVReturn error = CVDisplayLinkStart( displayLink );
+ if( error ) {
+ NSLog( @"error starting displayLink:%d", error );
+ }
+
[view_lock unlock];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|