So I'm trying to create a texture using D3DXCreateTextureFromFile.

What I'm doing:

if (FAILED(eCode = D3DXCreateTextureFromFile(this->GetDevice(), "Required\\Images\\420.png", _Texture)))

On MSDN they say it returns what error it is so I made a switch statement with all the possible errors, from my loggers output the error is:

[LOG] [ERROR] Creating texture failed: ERROR: D3DXERR_INVALIDDATA[2015-6-26 | 20:15]

And yes, the image is inside required\images\, and they are spelled correctly.

Original Writen by PsychoBitch in Direct3D Category, the date of 26-06-2015 19:51.