Blender Git Loki
Git Commits -> Revision 77f5210
Revision 77f5210 by Clément Foucault (master) May 30, 2019, 11:42 (GMT) |
GPU: Remove GPU_INDEX_U8 This type of indices is not natively supported on modern GPU and gives warning on some implementation. The memory savings it provides is also quite minimal and unlikely to be visible on nowadays hardware. This remove some uneeded struct members and makes primitive restart always enabled by default. This can be broken by addons if they are not careful enough but many other states have this problem. Also leverage GL_PRIMITIVE_RESTART_FIXED_INDEX if ARB_ES3_compatibility is supported. This removes all API calls to change restart index depending on indices length. |
Commit Details:
Full Hash: 77f5210f22332b3594fabe08bee5809fc8333dba
Parent Commit: dc0c490
Lines Changed: +51, -102
8 Modified Paths:
/source/blender/draw/intern/draw_cache.c (+2, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl_curve.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+4, -4) (Diff)
/source/blender/draw/intern/draw_cache_impl_particles.c (+3, -5) (Diff)
/source/blender/gpu/GPU_element.h (+1, -9) (Diff)
/source/blender/gpu/intern/gpu_batch.c (+12, -28) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+10, -0) (Diff)
/source/blender/gpu/intern/gpu_element.c (+18, -53) (Diff)
/source/blender/draw/intern/draw_cache_impl_curve.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+4, -4) (Diff)
/source/blender/draw/intern/draw_cache_impl_particles.c (+3, -5) (Diff)
/source/blender/gpu/GPU_element.h (+1, -9) (Diff)
/source/blender/gpu/intern/gpu_batch.c (+12, -28) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+10, -0) (Diff)
/source/blender/gpu/intern/gpu_element.c (+18, -53) (Diff)