equal
deleted
inserted
replaced
202 } |
202 } |
203 |
203 |
204 if (!CGLSD_MakeCurrentToScratch(env, oglc)) { |
204 if (!CGLSD_MakeCurrentToScratch(env, oglc)) { |
205 return NULL; |
205 return NULL; |
206 } |
206 } |
207 } else if ([NSOpenGLContext currentContext] == nil) { |
207 // make sure our context is current |
|
208 } else if ([NSOpenGLContext currentContext] != ctxinfo->context) { |
208 [ctxinfo->context makeCurrentContext]; |
209 [ctxinfo->context makeCurrentContext]; |
209 } |
210 } |
210 |
211 |
211 if (OGLC_IS_CAP_PRESENT(oglc, CAPS_EXT_FBOBJECT)) { |
212 if (OGLC_IS_CAP_PRESENT(oglc, CAPS_EXT_FBOBJECT)) { |
212 // the GL_EXT_framebuffer_object extension is present, so this call |
213 // the GL_EXT_framebuffer_object extension is present, so this call |