Label:fixed possible appear OpenGL error 0x500.
remove unused local variable.
Merge pull request #6091 from Dhilan007/develop_label

Label:fixed possible appear OpenGL error 0x500.