Fix kdopbvh incorrect checks for failed allocs

also assert for invalid args
Vertex Paint: use solid shading, shadeless in wire (like wpaint)
Vertex Paint: inverted line drawing, white lines were often hard to see
Error in last commit
Code cleanup: comment unused OpenGL util functions
View3D: avoid matrix multiply using ED_view3d_boundbox_clip
Math Lib: add angle_qt functions
View3D: remove orbit snapping LUT, allow to snap axis but not roll
Fix T36566: 2D filters broken in the Blenderplayer when using side by side stereo

GPC_Canvas::GetWindowArea() and KX_BlenderCanvas::GetWindowArea() are tracking two
different things. The 2d filter system doesn't actually need the window area and
can get by just using the viewport dimensions, which it now does. The GetWindowArea()
mess should probably be cleaned up.
Fix T39271: Crash in MCE with "p" shortcut without clip

Weird nobody noticed this before, issue exists in 2.69 as well..
BGE: Adding support for the Cast Only material option.

Note: This does not add support for the option in the viewport.
Fix for crash happening on blender exit after the bake

The issue is caused by 1a79abdad, and annoyingly it's a regression
since 2.69, so if we do 'a', this commit should be ported there.
Fix for crash generating docs (enums with only callbacks)
Fix T39141: Video Sequencer Proxies don't take into account Strip Input Offset (or strip modifiers)

Basically issue was caused by the fact that strip for proxy has been
post-processed but proxy files were considered pre-processed. This lead
to situation of postprocessing being applied twice.
Code cleanup: use true/false in sequencer functions
Code cleanup: use bool/true/false in clip editor
Fix T39270: Since as the Move Clip Editor have only two modes, menu on tab is needless
Extend workaround to all OS  :avoid link failure with clang 3.4 debug
Code cleanup: use bools
Fix for clang build warnings: ATTR_WARN_UNUSED_RESULT is used after
the inline definitions are included, which gives lots of warnings
"attribute declaration must precede definition".

See also rB83617429cf28f2a19e991a0f71d892fc159a4419