DrawToSharedTexture
Recompiled for testing
Cleanup