fixed 3dtexture usage on windows