Fixed recurring GL_INVALID_VALUE OpenGL errors


Now that these are not generated all the time, makes it
easier to use glGetError to find actual errors.

Change-Id: I4e10f5798e4e79466a47a0d671c04b445899c62c
Change-Id: I4e10f5798e4e79466a47a0d671c04b445899c62c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
commitd76b078947c2d440e4760384967e8bac9c7bd3f5
parentf3a73782738c5868541086eadd5e5c7b4aaabc14
authorTomi Korpipää <tomi.korpipaa@digia.com>
committerTomi Korpipää <tomi.korpipaa@digia.com>
commit timeThu, 9 Oct 2014 10:35:50 +0300