diff --git a/configure b/configure
index d7e93aa..19ed7fb 100755
--- a/configure
+++ b/configure
@@ -20205,6 +20205,9 @@
     64 ) ;;
     * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
 esac
+if test "$enable_hdri" = 'yes'; then
+  with_quantum_depth=16
+fi
 QUANTUM_DEPTH="$with_quantum_depth"
 
 cat >>confdefs.h <<_ACEOF