Dev texture states cacheing (#3201)
* minimal texture bounds pass 1

* cheeky opts

* tidy up code

* create empty textures

* added empty texture

* couple more tweaks

* fixed empty texture issue

* fixed tweaked so id's sit on glTexture

means it should work on multiple contexts

* tweaked unbound textures

* tidy up

* upped max textures to 4 for mobile!

also sending state to tiling sprite VAO

* removed _activeTetureLocation

* tweaked eslint

* make sure buffer is bound

* updates based on @englercj review points

- Added vertexCount back in as it still yields much faster results in
iOS
- Tidied old comments
- Replaced i++ with ++i
1 parent a932087 commit 932f4e181493b6554796c8e841172f54631b6ca5
@Mat Groves Mat Groves authored on 31 Oct 2016
Chad Engler committed on 31 Oct 2016
Showing 8 changed files
View
.eslintrc.json
View
src/core/renderers/webgl/TextureManager.js
View
src/core/renderers/webgl/WebGLRenderer.js
View
src/core/renderers/webgl/managers/FilterManager.js
View
src/core/sprites/webgl/SpriteRenderer.js
View
src/core/textures/BaseTexture.js
View
src/core/utils/maxRecommendedTextures.js
View
src/extras/webgl/TilingSpriteRenderer.js