X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpixelformat.cpp;fp=source%2Fpixelformat.cpp;h=6655c6b22c3b3205e06be0bbe338e643209d2da9;hp=e915e92fa61160908f8639828ffac60c89b893a7;hb=ee1da735a016a4df724fb18e60dec6a6f9bf3d6e;hpb=18f611802019c809d4257f6d1c0e341d3a645b1a diff --git a/source/pixelformat.cpp b/source/pixelformat.cpp index e915e92f..6655c6b2 100644 --- a/source/pixelformat.cpp +++ b/source/pixelformat.cpp @@ -124,14 +124,7 @@ PixelFormat get_sized_pixelformat(PixelFormat pf, unsigned size) if(!size || size>4) throw invalid_argument("get_sized_pixelformat"); - switch(pf) - { - case SRGB: - case SRGB_ALPHA: break; - case SRGB8: pf = SRGB; break; - case SRGB8_ALPHA8: pf = SRGB_ALPHA; break; - default: pf = get_base_pixelformat(pf); - } + pf = get_unsized_pixelformat(pf); switch(size) {