mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Added max size value
This commit is contained in:
parent
f50560eba8
commit
7b5d6076b2
1 changed files with 5 additions and 0 deletions
|
@ -771,6 +771,11 @@ var WebGLRenderer = new Class({
|
|||
config.maxTextures = gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS);
|
||||
}
|
||||
|
||||
if (!config.maxTextureSize)
|
||||
{
|
||||
config.maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
|
||||
}
|
||||
|
||||
var extString = 'WEBGL_compressed_texture_';
|
||||
var wkExtString = 'WEBKIT_' + extString;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue