[836/906] cocoa: only use GSRegisterCurrentThread with GNUStep environment

This commit is contained in:
Matthieu Bouron 2013-11-01 16:35:46 +00:00 committed by Tim-Philipp Müller
parent 6a5bd364a4
commit cc0b1f3e05

View file

@ -135,7 +135,9 @@ gst_gl_context_cocoa_create_context (GstGLContext *context, GstGLAPI gl_api,
else
priv->external_gl_context = NULL;
#ifdef GNUSTEP
GSRegisterCurrentThread();
#endif
pool = [[NSAutoreleasePool alloc] init];