1
1

OCIO: Fix bool1 vs. bool comparison warning.

Fixes the following warning:
`'!=': unsafe mix of type 'bool1' and type 'bool' in operation`
This commit is contained in:
2022-02-22 17:29:05 +01:00
parent 8073c95fe9
commit 2f951667c0

View File

@@ -506,11 +506,11 @@ static void updateGPUDisplayParameters(OCIO_GPUShader &shader,
data.dither = dither;
do_update = true;
}
if (data.use_predivide != use_predivide) {
if (bool(data.use_predivide) != use_predivide) {
data.use_predivide = use_predivide;
do_update = true;
}
if (data.use_overlay != use_overlay) {
if (bool(data.use_overlay) != use_overlay) {
data.use_overlay = use_overlay;
do_update = true;
}