Code cleanup / Cycles:
* Various string and comment fixes. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58917 954f8c5b-7b00-dc11-b283-0030488c597c
use api function for rect intersection

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58918 954f8c5b-7b00-dc11-b283-0030488c597c
minor glitch with border drawing, use glRecti rather then glRectf, so rounding matches the border render

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58920 954f8c5b-7b00-dc11-b283-0030488c597c
revert r58920 change to area.c, committed by accident

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58921 954f8c5b-7b00-dc11-b283-0030488c597c
border render with cycles had 1 pixel offset on the top-right edge of the image, issue was caused by wmSubWindowScissorSet adding 1 to the ar->drawrct, now only add the padding when drawing the entire area

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58922 954f8c5b-7b00-dc11-b283-0030488c597c
fix for blender-internal viewport render looking fuzzy, don't filter the image

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58923 954f8c5b-7b00-dc11-b283-0030488c597c
fix for divide by zero when border render size causes zero pixel width

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58926 954f8c5b-7b00-dc11-b283-0030488c597c
Fix wrong cycles cmake + msvc build flags with relwithdebinfo and minsizerel.
Patch by Karsten Schwenk.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58927 954f8c5b-7b00-dc11-b283-0030488c597c
Fix build warnings with clang and UNUSED_RESULT_ATTR (attribute declaration must precede definition).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58929 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles OSL: image texture lookup optimization, acquire the per thread handle
for texture system in advance. Patch by Martijn Berger, with some tweaks.

There was about a 10% performance improvement on OS X in my tests with the
images.blend test file. This may be less on other platforms because OS X has
particularly slow mutex locks.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58930 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36380: cycles render error with sun lamp that has object scale 0,0,0.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58931 954f8c5b-7b00-dc11-b283-0030488c597c
AVI JPEG: remove the restriction to write only sizes that are multiples of 16.
Other encoders do not seem to have this restriction, and multiple video players
can play the files fine.

This also removes the same restriction for reading files, which actually caused
errors on some files with odd width/height.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58940 954f8c5b-7b00-dc11-b283-0030488c597c
SplitViewer node:
- fix thumbnail preview (previously it showed only one input)
- make SplitViewer node update even if the second input is not connected
- now it works when the first socket is connected to a zero-sized node tree (e. g. Color Input node)
- SplitViewer node is now based on 2 operations: SplitOperation and ViewerOperation.
- ViewerBaseOperation was removed as a redundant one. Any future viewer style node can use the same principle and prepare the output before passing to an actual ViewerOperation.

Thanks Lukas Toenne for reviewing this patch and giving me get few pieces of advice.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58943 954f8c5b-7b00-dc11-b283-0030488c597c
use gcc malloc attribute for low level allocation functions, prevents gcc from checking if resulting pointers alias existing pointers, also use sentinel attribute for uiButGetStrInfo so incorrect usage gives a warning.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58944 954f8c5b-7b00-dc11-b283-0030488c597c