summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-05-12 13:37:11 +0900
committerTomaž Vajngerl <quikee@gmail.com>2016-05-19 02:47:57 +0000
commite480b2cf3e362760de8e35cbb950104e47ebe7ec (patch)
tree0d6cff1c68d392466104bcd48f056e8c300d26d6 /framework
parentbd3ed061de068a03a7c75f093c9a9bd7b6f3ba57 (diff)
opengl: track the state of blend, DrawArrays on OpenGLProgram
This adds tracking of GL_BLEND and glBlendFunc which are usually set when setting up the current draw call on OpenGLProgram with SetBlendFunc method. Until now the final draw call (glDrawArrays) was called outside of OpenGLProgram. This is a problem because we need to know if we did call SetBlendFunc or not between when we used or reused the current program. So we added DrawArrays to OpenGLProgram and refactored all draw calls in OpenGLSalGraphicsImpl to use this. From now on glDrawArrays should not be called directly but always through OpenGLProgram. Change-Id: I530b4b948af8a962669a3751e1a95ff3986ffec9 Reviewed-on: https://gerrit.libreoffice.org/25083 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'framework')
0 files changed, 0 insertions, 0 deletions