]> git.mxchange.org Git - simgear.git/commit
Canvas::Path: reduce number of OpenGL state changes.
authorThomas Geymayer <tomgey@gmail.com>
Tue, 1 Apr 2014 10:03:53 +0000 (12:03 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Tue, 1 Apr 2014 10:03:53 +0000 (12:03 +0200)
commit8c45796dc8bb468ff78f490ab646e007d32e0189
tree3158432d5f0c60bbb06696b4a89881a96f3f0f14
parenta160e176da0c6e0caea36cffe7eb0bc49a2031cc
Canvas::Path: reduce number of OpenGL state changes.

 - Do not enable any multisampling as for FBOs it is not
   supported anyhow.
 - Just restore GL_BLEND and GL_STENCIL_TEST manually
   => Getting rid of the huge load of glPushAttrib/glPopAttrib
      gets us a huge performance boost, especially for drivers
      with slow state stack implementations.
simgear/canvas/ShivaVG/src/shPipeline.c
simgear/canvas/elements/CanvasPath.cxx