Files
test2/intern
Sergey Sharybin a04c29e8ab Fix crash and assert failure when using OCIO GLSL draw mode and color management disabled
The issue was happening when display device is set to None, which makes it so
all the color transformation is a no-op which does not really require any LUT.

This is something we can not know from Blender side easily, because LUT sampling
and related logic is fully done in OCIO library itself. The following happens:

- OCIO sees that no LUT is needed and uses simple pass-through logic in the
  color conversion function.

- GLSL compiles sees that uniform used for LUT is unused in the GLSL code and
  strips it out.

We can not know this from Blender side because technically any conversion to
the same space might be a no-op and that we wouldn't know without some tricky
parse of the OCIO configuration.

So for now we simply avoid crash but are disabling checks for existence of the
uniform.

Ideally would be nice to have some GLSL-code parses which gets the uniforms
from the code itself, so we can distinguish between typo in the uniform name
and uniform being optimized out.
2017-05-08 16:45:07 +02:00
..
2016-01-04 14:20:48 +05:00
2017-03-12 02:47:53 +11:00
2016-01-04 14:20:48 +05:00
2016-01-04 14:20:48 +05:00
2017-04-13 16:57:53 +02:00
2017-04-22 00:35:04 -04:00
2016-07-02 10:08:33 +10:00
2016-01-04 14:20:48 +05:00
2016-06-11 22:05:20 +02:00
2016-01-04 14:20:48 +05:00
2017-03-16 23:32:35 -04:00