draw2DImage with pointer changement

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
stefbuet
Competition winner
Posts: 495
Joined: Sun Dec 09, 2007 4:13 pm
Location: france

draw2DImage with pointer changement

Post by stefbuet »

The result of that code should be the image2 displayed on screen.
Instead, I get a mix of image1 and image2 colors.

Code: Select all


ITexture *img1=driver->getTexture("img1.png");
ITexture *img2=driver->getTexture("img2.png");

ITexture *temp=img1;
driver->draw2DImage(temp, ..., ..., ...);
temp=img2;

Don't know if it's a bug, or something else?
ErUs
Posts: 165
Joined: Thu Oct 07, 2004 6:13 pm

Re: draw2DImage with pointer changement

Post by ErUs »

stefbuet wrote:

Code: Select all


ITexture *img1=driver->getTexture("img1.png");
ITexture *img2=driver->getTexture("img2.png");

ITexture *temp=img1;
driver->draw2DImage(temp, ..., ..., ...);
temp=img2;

Should draw image 1
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I guess we need a screenshot or something to see what happens.
Post Reply