Commit cbbd50e1 authored by hybrid's avatar hybrid

Fix another image constructor usage.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2909 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 75f7074e
...@@ -38,7 +38,10 @@ COpenGLTexture::COpenGLTexture(IImage* origImage, const io::path& name, COpenGLD ...@@ -38,7 +38,10 @@ COpenGLTexture::COpenGLTexture(IImage* origImage, const io::path& name, COpenGLD
glGenTextures(1, &TextureName); glGenTextures(1, &TextureName);
if (ImageSize==TextureSize) if (ImageSize==TextureSize)
Image = new CImage(ColorFormat, origImage); {
Image = new CImage(ColorFormat, ImageSize);
origImage->copyTo(Image);
}
else else
{ {
Image = new CImage(ColorFormat, TextureSize); Image = new CImage(ColorFormat, TextureSize);
......
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