Fix checking against GLenum instead of an actual limit

Comparing with MAX_TEXTURE_SIZE means to compare against 3379,
not the actual limit of the texture size.

Fixes: 143329407
Change-Id: Ide7ddf7972655e2cf03fb1dca6c07f2d15514c5e
1 file changed