]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pixelstore.cpp
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / pixelstore.cpp
index e1a7cc0ef9ea378bce5db24f7035500b00829a36..409f0f9a862e3582c975a486188452a60544dfb6 100644 (file)
@@ -23,7 +23,7 @@ PixelStore PixelStore::from_image(const Graphics::Image &img)
 {
        PixelStore pstore;
        unsigned stride = img.get_stride();
-       unsigned ncomp = get_component_count(pixelformat_from_graphics(img.get_format()));
+       unsigned ncomp = get_component_count(pixelformat_from_image(img));
        pstore.set_canvas_size(img.get_stride()/ncomp, 0);
        pstore.set_alignment(min(stride&~(stride-1), 8U));
        return pstore;