Commit 0bd4fd3a authored by Alexander Karsakov's avatar Alexander Karsakov

Workaround for Intel platform: replace min() with ternary operator

parent 6be7869a
......@@ -69,8 +69,13 @@
#endif
#ifdef ERODE
#ifdef INTEL_DEVICE
// workaround for bug in Intel HD graphics drivers (10.18.10.3496 or older)
#define MORPH_OP(A,B) ((A) < (B) ? (A) : (B))
#else
#define MORPH_OP(A,B) min((A),(B))
#endif
#endif
#ifdef DILATE
#define MORPH_OP(A,B) max((A),(B))
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment