DRW: Fix Ubo binding logic and improve Texture binding logic
authorClément Foucault <foucault.clem@gmail.com>
Sat, 16 Sep 2017 00:16:55 +0000 (02:16 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Sat, 16 Sep 2017 00:16:55 +0000 (02:16 +0200)
commit9068c0743e0840cea5bbf07cd1bad7d662ab5a07
tree296819ff0d5b2d592ee9eafd1702b134d379e0e3
parentf565d8c4ae9a2ddf0520a15e2407744aecff7cba
DRW: Fix Ubo binding logic and improve Texture binding logic

Ubo needs to be rebound every times the shader changes.
This simplify the logic a bit.

Also modify texture binding logic to potentially reuse more already bound textures.
source/blender/draw/intern/draw_manager.c