avoiding Context3DProfile enum for backwards compatibility (closes #306)
avoiding array push to prevent allocation
fixed erroneous use of static helper vector
Merge branch 'master' into develop