coregl_fastpath: Fix issue occurs in vertex array Enable/Disabe 15/85215/3
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Tue, 23 Aug 2016 19:30:15 +0000 (03:30 +0800)
committerGwan-gyeong Mun <kk.moon@samsung.com>
Fri, 26 Aug 2016 11:54:16 +0000 (04:54 -0700)
commit0c4d0844016f2d338b4806cafcce58aa414b055c
tree839bd092c2353304eaf84319c0ddb5634ac389ff
parent13c8865e82d7c81b14366b1fb3fa69b0a2937063
coregl_fastpath: Fix issue occurs in vertex array Enable/Disabe

Whether an vertex array is bounded or not, value of
state gl_vertex_array_enabled should be always
updated once fastpath_glEnableVertexAttribArray or
fastpath_glDisableVertexAttribArray is called, if not,
it will cause state confusion

Once an vertex array is unbounded or an new vertex
array is bounded, value of state gl_vertex_array_enabled
should be cleared

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I7d686cc603dfb74e305c64687eaea36be6f1aea1
src/modules/fastpath/coregl_fastpath_gl.c