I am working on a project, where I am trying to build a (large) 2D map with Icons on it.
This works ok, untill I try to load map file (a 2500x2500 file), then my Texture.FromBitmap function crashes with the error message:
-2005530516 (D3DERR_INVALIDCALL)
in line:
m_TextureHash[ imageName ] = Texture.FromBitmap( m_Device, theImage, 0, Pool.Default );
It works if I insted do this:
TextureLoader.FromFile( m_Device, path );
But I want to manipulate the Image object, before I load the texture. How can I do this ?
Thx in advance,
-maZZoo
This works ok, untill I try to load map file (a 2500x2500 file), then my Texture.FromBitmap function crashes with the error message:
-2005530516 (D3DERR_INVALIDCALL)
in line:
m_TextureHash[ imageName ] = Texture.FromBitmap( m_Device, theImage, 0, Pool.Default );
It works if I insted do this:
TextureLoader.FromFile( m_Device, path );
But I want to manipulate the Image object, before I load the texture. How can I do this ?
Thx in advance,
-maZZoo