#include "bindable.h"
#include "buffer.h"
#include "error.h"
-#include "pixelstore.h"
#include "resources.h"
#include "texture2d.h"
PixelFormat fmt = pixelformat_from_image(img);
storage(make_pixelformat(get_components(fmt), get_component_type(fmt), use_srgb_format), w, h, lv);
- PixelStore pstore = PixelStore::from_image(img);
- BindRestore _bind_ps(pstore);
-
image(0, from_buffer ? 0 : img.get_pixels());
}