mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
ForwardRenderer uses window.innerWidth and window.innerHeight.
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ var _p;
|
||||
|
||||
_p = renderer.ForwardRenderer.prototype;
|
||||
_p._ctor = function(device, builtin) {
|
||||
this.init(device, builtin.programTemplates, builtin.defaultTexture, canvas.width, canvas.height);
|
||||
this.init(device, builtin.programTemplates, builtin.defaultTexture, window.innerWidth, window.innerHeight);
|
||||
};
|
||||
_p.render = function(scene) {
|
||||
fillModelData();
|
||||
|
||||
Reference in New Issue
Block a user