X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture2d.cpp;h=e15f9a33562d1e1527ba3c5d76905db437945c7f;hb=fcaae0500d5c6fa842babe37450c435e4178547a;hp=75b84ec7bbe5747c17ee47b137ba56df33e9101e;hpb=cdf928f03f4d8383b8fa978abc4c255a850ec061;p=libs%2Fgl.git 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()