Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created December 12, 2013 01:17
Show Gist options
  • Save tsubaki/7921690 to your computer and use it in GitHub Desktop.
Save tsubaki/7921690 to your computer and use it in GitHub Desktop.
ディクテーションでUnityが落ちる対策。Unityが出力したファイルのUnityAppController.mmのrepaintメソッドのSetupUnityDefaultFBOの上にEAGLContextSetCurrentAutoRestore云々の部分を追加する
- (void)repaint
{
EAGLContextSetCurrentAutoRestore autorestore(_mainDisplay->surface.context);
SetupUnityDefaultFBO(&_mainDisplay->surface);
// ...
}
@st0326s
Copy link

st0326s commented Dec 12, 2013

ありがとうございました、大変助かりました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment