X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexturecube.cpp;h=576f1c718b3848aa043cb165b04a578f83500a70;hb=e079d5a878e83dc0baffcec66a57659c885cd593;hp=24d02f4022b2aeac380410ea481a2e392181f8af;hpb=1ef3f6df6d85627190e311b4b09f56a4983ec797;p=libs%2Fgl.git diff --git a/source/texturecube.cpp b/source/texturecube.cpp index 24d02f40..576f1c71 100644 --- a/source/texturecube.cpp +++ b/source/texturecube.cpp @@ -86,10 +86,7 @@ void TextureCube::image(TextureCubeFace face, const Graphics::Image &img, bool s if(w!=h) throw incompatible_data("TextureCube::image"); - PixelFormat f = storage_pixelformat_from_graphics(img.get_format()); - if(srgb) - f = get_srgb_pixelformat(f); - storage(f, w); + storage(storage_pixelformat_from_graphics(img.get_format(), srgb), w); } else if(w!=size || h!=size) throw incompatible_data("TextureCube::image");