Code: Select all
#pragma comment( lib, "irrlicht.lib" )
#include <irrlicht.h>
using namespace irr;
using namespace video;
using namespace core;
int main(int argc, char* argv[])
{
IrrlichtDevice* device = createDevice( EDT_DIRECT3D9, dimension2di( 150, 350 ) );
IVideoDriver* driver = device->getVideoDriver();
ITexture* tex = driver->getTexture( "paperdoll.png" );
dimension2di texSize = tex->getOriginalSize();
while( device->run() )
{
driver->beginScene( true, true, 0xff6060ff );
driver->draw2DImage( tex, position2di(0,0), rect<s32>(0,0,texSize.Width,texSize.Height), 0, 0xffffffff, true );
driver->endScene();
}
device->drop();
}
when I use pow2 image ( or copy pixels to pow2 texture ), it renders correctly.
Is it a bug? or specification?