Skip to content

Instantly share code, notes, and snippets.

@robertcastle
robertcastle / CMVideoSamplingPatcher.cs
Created October 3, 2014 09:41
When using Xcode 6 and Unity 4.3.4 or earlier, iOS builds fail due to a missing include in CMVideoSampling.mm. This PostProcessBuild script adds the glext.h header to the CMVideoSampling.mm file if it is missing.
//-------------------------------------------------------------
//
// CMVideoSamplingPatcher
// Copyright © 2014 Egomotion Limited
//
// When using Xcode 6 and Unity 4.3.4 or earlier, iOS builds
// fail due to a missing include in CMVideoSampling.mm.
//
// This PostProcessBuild script adds the glext.h header
// to the CMVideoSampling.mm file if it is missing.