Added hook for drawToBitmapData in Context3D