Commit 49be1f91 authored by hybrid's avatar hybrid

Fix image assignment which was lost in recent changes due to copy/paste problem

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3755 dfc29bdd-3216-0410-991c-e03cc46cb475
parent be4fae03
...@@ -38,12 +38,12 @@ COpenGLTexture::COpenGLTexture(IImage* origImage, const io::path& name, void* mi ...@@ -38,12 +38,12 @@ COpenGLTexture::COpenGLTexture(IImage* origImage, const io::path& name, void* mi
if (ImageSize==TextureSize) if (ImageSize==TextureSize)
{ {
Driver->createImage(ColorFormat, ImageSize); Image = Driver->createImage(ColorFormat, ImageSize);
origImage->copyTo(Image); origImage->copyTo(Image);
} }
else else
{ {
Driver->createImage(ColorFormat, TextureSize); Image = Driver->createImage(ColorFormat, TextureSize);
// scale texture // scale texture
origImage->copyToScaling(Image); origImage->copyToScaling(Image);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment