Sculpt draw code:

Remove legacy code completely, now dyntopo, multires et al even work on
GL 1.1 for really hardcore users :p

Real purpose here though is to be able to have fast multires drawing
even with VBO off, since it requires using indices for vertex buffers.

Also made own code elf puke an eaten normal update function which
made multires not update normals in solid mode...sorry.
This commit is contained in:
2015-07-16 16:22:28 +02:00
parent 6568b6d1cd
commit 3e3e7ee41c
7 changed files with 222 additions and 475 deletions

View File

@@ -29,8 +29,11 @@
* \ingroup gpu
*/
#include "BKE_DerivedMesh.h"
#include "BLI_sys_types.h"
#include "GPU_init_exit.h" /* interface */
#include "GPU_buffers.h"
#include "BKE_global.h"
@@ -70,6 +73,7 @@ void GPU_exit(void)
gpu_codegen_exit();
gpu_extensions_exit(); /* must come last */
GPU_buffer_multires_free(true);
initialized = false;
}