prevent access to uninitialized variables

Change-Id: I1a12e2453ec935dc642135c30a36e1a97fc3d0f9
add missing OpenGL type error string

Change-Id: I53a7eba4a4f8b1bd61381283b20190cfc05a138a