Fix a bugy macro definition.
The macro like "#define LINEAR_SMALL_STOPS 6 + 2" causes the problem. When use it to define like "GLfloat stop_colors_st[LINEAR_SMALL_STOPS*4];" The array is small than what we supposed it to be. Cause memory corruption problem and cause the bug of render wrong result. Fix it. Signed-off-by: Junyan He <junyan.he@linux.intel.com> Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
d900f553c2
commit
09de37ec1c
|
@ -34,11 +34,11 @@
|
|||
|
||||
#ifdef RENDER
|
||||
|
||||
#define LINEAR_SMALL_STOPS 6 + 2
|
||||
#define LINEAR_LARGE_STOPS 16 + 2
|
||||
#define LINEAR_SMALL_STOPS (6 + 2)
|
||||
#define LINEAR_LARGE_STOPS (16 + 2)
|
||||
|
||||
#define RADIAL_SMALL_STOPS 6 + 2
|
||||
#define RADIAL_LARGE_STOPS 16 + 2
|
||||
#define RADIAL_SMALL_STOPS (6 + 2)
|
||||
#define RADIAL_LARGE_STOPS (16 + 2)
|
||||
|
||||
#ifdef GLAMOR_GRADIENT_SHADER
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user