X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.cpp;h=e15f9a33562d1e1527ba3c5d76905db437945c7f;hp=75b84ec7bbe5747c17ee47b137ba56df33e9101e;hb=fcaae0500d5c6fa842babe37450c435e4178547a;hpb=21eaad595acb574d81bad5140d24b570da4f9785 diff --git a/source/texture2d.cpp b/source/texture2d.cpp index 75b84ec7..e15f9a33 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -171,7 +171,7 @@ Resource::AsyncLoader *Texture2D::load(IO::Seekable &io, const Resources *res) UInt64 Texture2D::get_data_size() const { - return id ? width*height*get_component_count(ifmt) : 0; + return id ? width*height*get_pixel_size(ifmt) : 0; } void Texture2D::unload()