OpenGL error hunt pv

This patch implements consistent OpenGL error checking used in VTK
in ParaView and cleans up reported errors.

Change-Id: I00a0774e89f7ad0daa8679808cb1fb141c9b794f
Merge topic 'update_vtk_master' into next

c8736fa OpenGL error hunt pv