summaryrefslogtreecommitdiff
path: root/src/lib/j2k_image_proxy.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-09-11 18:52:05 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-27 13:41:46 +0200
commit7245e46453a82886739a45bd78fcdf9e8401367c (patch)
treed8f8b3d420eecfc958ac78df40c26f77d34f47d3 /src/lib/j2k_image_proxy.cc
parente9ae050b0b15c91c3f591ad84938e60d271357b3 (diff)
When the player is used in OpenGL mode, pass unscaled XYZ data through to the shader and do colourspace conversion there.
Diffstat (limited to 'src/lib/j2k_image_proxy.cc')
-rw-r--r--src/lib/j2k_image_proxy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/j2k_image_proxy.cc b/src/lib/j2k_image_proxy.cc
index 144da396d..c98273ad2 100644
--- a/src/lib/j2k_image_proxy.cc
+++ b/src/lib/j2k_image_proxy.cc
@@ -145,7 +145,7 @@ J2KImageProxy::prepare (optional<dcp::Size> target_size) const
try {
/* XXX: should check that potentially trashing _data here doesn't matter */
auto decompressed = dcp::decompress_j2k (const_cast<uint8_t*>(_data->data()), _data->size(), reduce);
- _image.reset (new Image (_pixel_format, decompressed->size(), true));
+ _image.reset (new Image (_pixel_format, decompressed->size(), false));
int const shift = 16 - decompressed->precision (0);