Commit Graph

9 Commits

Author SHA1 Message Date
James Chen 2d7e3ade55 Reverts HTMLCanvasElement change in PR #2684. (#2700)
* Reverts HTMLCanvasElement change in PR #2684.
It's a bug of alignment value while reading texture. Adds _alignment variable in HTMLCanvasElement.

* Default value of width& height of Canvas is 0.

* Call PixelStorei before texImage2D in C++.
2018-05-21 09:54:36 +08:00
minggo efee3b49ce adjust codes to unify js_loadImage binding codes (#2585) 2018-04-24 16:37:51 +08:00
minggo 92241e4ca9 fix bugs for new renderer (#2574)
* gulp task: add clean cache & support native renderer

* fix binding codes of Texture2D.updateSubImage

* fix some issues

* fix Texture2D.updateSubImage()
2018-04-20 14:43:58 +08:00
James Chen 674ee3a0ae window.gl should not be public variable, rename it to window.__ccgl. 2018-04-20 10:26:15 +08:00
minggo 8f5f927a95 optimize performance 2018-04-18 17:01:46 +08:00
minggo 335da463c5 optimize performance 2018-04-16 14:58:18 +08:00
minggo 19a1354c9a fix some bugs to run on native 2018-03-30 16:35:30 +08:00
minggo 7204aab00e fix license 2018-03-28 16:45:14 +08:00
minggo 6e37e154f5 JSB adaption 2018-03-26 10:54:09 +08:00