How to fix 'Could not create IImage, format only supported for render target textures.'?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mitras1
Posts: 14
Joined: Mon Jan 29, 2024 8:02 am

How to fix 'Could not create IImage, format only supported for render target textures.'?

Post by mitras1 »

Here's the line of code that causes this:

Code: Select all

video::IImage* im = driver->createImageFromData(video::ECF_A32B32G32R32F, core::dimension2du(64, 64), data->pointer());
CuteAlien
Admin
Posts: 9687
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to fix 'Could not create IImage, format only supported for render target textures.'?

Post by CuteAlien »

Switch to svn trunk version of Irrlicht. This wasn't supported in Irrlicht 1.8 (not sure if for any good reason).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply