forked from mirror/openmw-tes3mp
use different image pixel format
This commit is contained in:
parent
4b0099fb5b
commit
10398723d8
1 changed files with 1 additions and 2 deletions
|
@ -54,7 +54,7 @@ void ImageRotate::rotate(const std::string& sourceImage, const std::string& dest
|
||||||
TEX_TYPE_2D,
|
TEX_TYPE_2D,
|
||||||
width, height,
|
width, height,
|
||||||
0,
|
0,
|
||||||
PF_A8R8G8B8,
|
PF_FLOAT16_RGBA,
|
||||||
TU_RENDERTARGET);
|
TU_RENDERTARGET);
|
||||||
|
|
||||||
RenderTarget* rtt = destTexture->getBuffer()->getRenderTarget();
|
RenderTarget* rtt = destTexture->getBuffer()->getRenderTarget();
|
||||||
|
@ -63,7 +63,6 @@ void ImageRotate::rotate(const std::string& sourceImage, const std::string& dest
|
||||||
vp->setOverlaysEnabled(false);
|
vp->setOverlaysEnabled(false);
|
||||||
vp->setShadowsEnabled(false);
|
vp->setShadowsEnabled(false);
|
||||||
vp->setBackgroundColour(ColourValue(0,0,0,0));
|
vp->setBackgroundColour(ColourValue(0,0,0,0));
|
||||||
vp->setClearEveryFrame(true, FBT_DEPTH);
|
|
||||||
|
|
||||||
rtt->update();
|
rtt->update();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue