code cleanup: bge warnings


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55791 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34601: cycles OSL crash when using preview render and viewport render at
the same time, due to shared texture cache system.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55792 954f8c5b-7b00-dc11-b283-0030488c597c
Attempt to fix #34871: random CUDA 3.5 compile failure due to recent change.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55793 954f8c5b-7b00-dc11-b283-0030488c597c
correction to previous warning cleanup, also quiet shadow-warning for thumbnail `size`


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55794 954f8c5b-7b00-dc11-b283-0030488c597c
py api additions needed for fixing [#34864].
- add rna property 'as_bytes' method so you can get a string property as python bytes (bypass encoding).
- make bpy.path.abspath/relpath compatible with bytes.
- add 'relpath' option to bpy_extras.image_utils.load_image(), so you can load an image relative to a path.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55795 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34867: cycles viewport render did not respect viewport visibility for
modifiers with text/curve/surface objects.

This is because the code here did not yet support the distinction between
generating the tesselated mesh at viewport/render resolution and generating a
separate displist/derivedmesh for render that is not stored in the object but
created and freed on the fly.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55796 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34862: some operators like mesh separate or object clear parent were not
showing shortcuts in menus, now it shows them in the submenu.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55797 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Cleaning up the VBO code to use RAS_TexVert more directly instead of copying out pieces. This also gets rid of MapBuffers, which isn't available in OpenGL ES. Scenes that require constant VBO updates (like my skeletal mesh stress test) are now 10~13% faster.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55798 954f8c5b-7b00-dc11-b283-0030488c597c
fix bad memmove size (reading past buffer bounds)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55799 954f8c5b-7b00-dc11-b283-0030488c597c
Apparently, you shall not define variables in the middle of the block

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55800 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#34857]: Negative temp.diff. in a smoke simulation doesn't work.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55801 954f8c5b-7b00-dc11-b283-0030488c597c
Bundle current master of ceres-solver

Thins brings up some speed improvements:

SPARSE_SCHUR is approx 1.3-1.5x times faster
ITERATIVE_SCHUR is approx 1.2x times faster

For blender this means camera solution go a bit
faster now. Would not have affect on tracking
speed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55802 954f8c5b-7b00-dc11-b283-0030488c597c
Update libmv to current upstream version

- Solves some strict compilation warning
- Style/code cleanup

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55803 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34872: Every images are displayed as black in UV/image editor

Issue was caused by some mesa drivers does not support GL_RGBA16F.

Now added check around glTexImage2D to verify whether requested
internal format is actually supported. If not blender will fall
back to non-GLSL image display.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55804 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for compositor bug found by Ton Roosendaal. Color Balance node was using wrong socket index to map the operation socket to the UI node socket.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55805 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed typo in OCIO GLSL module, was using address to a pointer..

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55806 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34873, Custom min/max node values get reset randomly while working and on save and quit. Node group socket interface was not storing the default_value struct in writefile.c, forgot to add this back when returning to DNA data for node sockets.

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

* Change coordinates of stencil to float, helps with precision during
property manuipulations
* Expose stencil properties to RNA.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55808 954f8c5b-7b00-dc11-b283-0030488c597c
First fix for install_deps and ubuntu 10.04 (no libtiff5, only libtiff4, wonder why this package does not work as jpeg or png ones)...

This allows compilation of OIIO, install_deps.sh still working though (on this old OS, all libs have to be compiled, takes time... :/).

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

* Shift-Rclick and holding right click, x or y will trigger constrained
scaling of overlay. Pressing again will revert to uniform scaling.
* Added operator, visible under the mapping drop menu, to fit stencil
aspect ratio to brush image aspect ratio.
* Made it possible to access stencil attributes from python as vec.x,
vec.y. Thanks to kgeogeo for pointing out!

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