Fix RenderTarget creation if called from non UI thread
Fix Windows build issue
Merge pull request #1959 from flyingdevelopmentstudio/RenderTarget2D-multithread_fix

Fix RenderTarget creation if called from non UI thread
Merge remote-tracking branch 'upstream/develop' into develop