Changed the constructor so it gives the right manager, driver and device. Textures work properly now