summaryrefslogtreecommitdiffstats
path: root/src/render/renderers/opengl/graphicshelpers/texturesubmissioncontext.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '5.12' into 5.13Paul Lemire2019-04-021-6/+17
| | | | Change-Id: If17511da64dd666a536408aa3cb3178ef6db0403
* Don't reset texture units at every frameMike Krus2019-03-181-0/+214
Resetting texture to unit assignment at every frame seems to trigger constant shader recompilation on macOS. Maybe GL driver is implemented on top of Metal which has more restrictions. Not resetting the assignment means the same texture units are used for consecutive frames and fixes excessive recompilation. Refactored the code to move the texture handling to separate class. Change-Id: I480f76e7e7b0ea669c6acb039cc3d079937ff97f Reviewed-by: Paul Lemire <paul.lemire@kdab.com>