Created
June 24, 2014 04:49
-
-
Save cyco/5238e18be048d421c907 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSTimeInterval tempQuickSaveTime = _lastQuickSave; | |
_lastQuickSave = [NSDate timeIntervalSinceReferenceDate]; | |
[self render]; | |
CGLLockContext(cgl_ctx); | |
{ | |
glReadPixels((frameSize.width - textureNSSize.width) / 2, | |
(frameSize.height - textureNSSize.height) / 2, | |
textureIntSize.width, textureIntSize.height, | |
GL_RGB, GL_UNSIGNED_BYTE, [imageRep bitmapData]); | |
} | |
CGLUnlockContext(cgl_ctx); | |
_lastQuickSave = tempQuickSaveTime; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment