Skip to content

Commit ce50df5

Browse files
committed
Fixed cvtColor OCL compilation issue (BGRA2mBGRA)
1 parent e93aa15 commit ce50df5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

modules/imgproc/src/opencl/cvtcolor.cl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,10 @@ enum
132132
#define R_COMP z
133133
#define G_COMP y
134134
#define B_COMP x
135-
#elif bidx == 2
135+
#else
136136
#define R_COMP x
137137
#define G_COMP y
138138
#define B_COMP z
139-
#elif bidx == 3
140-
// The only kernel that uses bidx == 3 doesn't use these macros.
141-
// But we still need to make the compiler happy.
142-
#define R_COMP w
143-
#define G_COMP w
144-
#define B_COMP w
145139
#endif
146140

147141
#ifndef uidx

0 commit comments

Comments
 (0)