option to turn off getError() for OpenGL, warnings

clang complains when you don't handle all the possible values of an enum in a
switch