diff options
author | Brian Paul <[email protected]> | 2015-10-14 09:31:41 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-10-15 07:21:07 -0600 |
commit | 6fd29e6c31e14e7b0f3c530798a1fc983eee17af (patch) | |
tree | 8f7c482354b6f9acef216c67b41bb8ddc1a9f0ff /docs | |
parent | 083b3f5cb4c5bd701d6a371282d7dc8c4f5fcaa8 (diff) |
mesa: optimize no-change check in _mesa_BlendFuncSeparate()
Streamline the checking for no state change in _mesa_BlendFuncSeparate()
(and _mesa_BlendFunc()). If _BlendFuncPerBuffer is false, we only need
to check the 0th buffer state. Move argument validation after the no-op
check.
I'm looking at an app that issues about 1000 redundant glBlendFunc()
calls per frame!
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions