Fix overriding CMAKE_BUILD_TYPE variable if already set.
Add image2D methods with target parameter to Texture in order to support cubemaps
Merge remote-tracking branch 'origin/master' into states_example