Returning the GL_MAX_TEXTURE_SIZE value usage: var maxTex = require("miga.timaxtex"); alert(maxTex.getMaxTextureSize());