give error when gl.CreateTexture is called with negative size