If GL_MAX_TEXTURE_SIZE cannot be read, don't check for it
In QML apps, the texture for custom labels can get created before
glGenIntegerv returns a valid value for GL_MAX_TEXTURE_SIZE.
Do not check for max size when it is zero.
Change-Id: I114ac8494bd5aa509490bd38ae58827fd21e2729
Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
| commit | 73b0741d2aad38a5e7e880a3731f68a320aab280 |
| parent | 93204b3bda941f1b36042fad46753c3f3219a082 |
| author | Miikka Heikkinen <miikka.heikkinen@digia.com> |
| committer | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> |
| commit time | Fri, 10 Oct 2014 10:32:45 +0300 |