many small corrections on opengl renderer