Bug: With the simpliest XEffect use, that is to say no effects, juste initing it and replacing the smgr->drawAll by xeffect->update, all Irrlicht textures are flipped, even when not using xeffect anymore to render the scene.
Here is the code to reproduce the bug.
Code: Select all
#include <cstdlib>
#include <iostream>
#include "XEffects/XEffects.h"
using namespace irr;
using namespace scene;
using namespace video;
EffectHandler *effect;
IrrlichtDevice *device;
IVideoDriver* driver;
ISceneManager* smgr;
ITexture *tex;
int main(int argc, char *argv[]) {
device =createDevice( video::EDT_OPENGL, core::dimension2d<u32>(640, 480), 16,false, false, false, 0);
driver = device->getVideoDriver();
smgr = device->getSceneManager();
effect = new EffectHandler(device, driver->getScreenSize(), true, true, true);
tex=driver->getTexture("irr_logo.png");
ICameraSceneNode *cam=smgr->addCameraSceneNode();
while(device->run()) {
driver->beginScene(true, true, SColor(255,100,101,140));
effect->update();
driver->draw2DImage(tex, core::rect<s32>(100,100,200,200), core::rect<s32>(0,0,100,100),0,0,true);
driver->endScene();
}
}
Stef.