X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture2d.cpp;h=f4af7e7259bef9ccaf3319be8c56df51cd9881a0;hb=49758ab622d2e8ed4b3a60d7b9afc4abd741300c;hp=973afebfcf277b75d217e2d0262e83846e06e41a;hpb=f33a98b1a044c8ac7b12778cbca6c4a124875e4a;p=libs%2Fgl.git diff --git a/source/texture2d.cpp b/source/texture2d.cpp index 973afebf..f4af7e72 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -124,7 +124,7 @@ void Texture2D::Loader::image_data(const string &data) void Texture2D::Loader::raw_data(const string &data) { - obj.image(0, obj.ifmt, UNSIGNED_BYTE, data.data()); + obj.image(0, get_base_pixelformat(obj.ifmt), UNSIGNED_BYTE, data.data()); } void Texture2D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h)