coregl_fastpath: Separate glColorMask state from glColorMaski and glColorMaskiOES
Fix showing of black screen while efl_webview_app renders aquarium.html page. ( test command: COREGL_FASTPATH=1 /usr/apps/org.tizen.chromium-efl/bin/efl_webview_app http://webglsamples.org/aquarium/aquarium.html )
- Reason:
glColorMask, glColorMaski and glColorMaskiOES share common gl_color_writemask
state, gl_color_writemask's size was obtained by glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS).
But, tm1 gl driver does not support GL_MAX_COLOR_ATTACHMENTS.
So, if "gl_color_writemask_num = 0" in the fastpath_glColorMask, it bypasses the calling of glColorMask to GLES/EGL Driver.
- Solution:
Separate the glColorMask from glColorMaski and glColorMaskiOES.
And assign another array to store state of glColorMask.
Signed-off-by: xing.huang <xing.huang@samsung.com>
Change-Id: Ia9250ece2ffa5f6ea750f92b68bf3bbcfb577bc8