Blender Git Commit Log
Git Commits -> Revision a08fdf1
Revision a08fdf1 by Sergey Sharybin (master) April 10, 2012, 16:28 (GMT) |
Fix #30874: Single texture display in Edit Mode It was a regression since 2.62 caused by how texface is passing to drawParamsMapped Previously it was used from CD layer but now it's getting copied from MexPoly into a variable allocated in stack for function void emDM_drawFacesTex_common. To set texture needed to draw particular face function set_draw_settings_cached is used, which tries to not to copy texture into GPU when it's not needed (for example, when drawing bunch of faces with the same texture) and one of condition if texture should be updated in GPU was comparing address of texface passed to this function and cached texface. But this address are exactly the sane and points to a memory inside stack of emDM_drawFacesTex_common. Fixed by cacheing texface content, not it's address. |
Commit Details:
Full Hash: a08fdf1f2a31a8107520ab7c7902d365d5cf3959
SVN Revision: 45517
Parent Commit: 297fde9
Lines Changed: +16, -5
1 Modified Path:
/source/blender/editors/space_view3d/drawmesh.c (+16, -5) (Diff)