Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2022-09-29 01:50:09 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-09-29 01:50:09 +0300
commit53ac3192ba07c4271c86479186ed0d0b8cd7846f (patch)
treee7d46d6d409dd19ede4fa7f7886ea1f7e14a6130 /source/blender/draw/intern/draw_pbvh.cc
parent65900d88a8317c207885ae4a3993272112114f36 (diff)
Cleanup: remove duplicate declaration
Also got rid of ATTR_NO_OPT macro.
Diffstat (limited to 'source/blender/draw/intern/draw_pbvh.cc')
-rw-r--r--source/blender/draw/intern/draw_pbvh.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/draw/intern/draw_pbvh.cc b/source/blender/draw/intern/draw_pbvh.cc
index 126ba98d06c..11788e3d044 100644
--- a/source/blender/draw/intern/draw_pbvh.cc
+++ b/source/blender/draw/intern/draw_pbvh.cc
@@ -8,17 +8,6 @@
* used by mesh sculpt mode.
*/
-/* Disable optimization for a function (for debugging use only!)*/
-#ifdef __clang__
-# define ATTR_NO_OPT __attribute__((optnone))
-#elif defined(_MSC_VER)
-# define ATTR_NO_OPT __pragma(optimize("", off))
-#elif defined(__GNUC__)
-# define ATTR_NO_OPT __attribute__((optimize("O0")))
-#else
-# define ATTR_NO_OPT
-#endif
-
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
@@ -48,9 +37,9 @@
#include "DRW_engine.h"
#include "DRW_pbvh.h"
+#include "bmesh.h"
#include "draw_pbvh.h"
#include "gpu_private.h"
-#include "bmesh.h"
#define MAX_PBVH_BATCH_KEY 512
#define MAX_PBVH_VBOS 16
@@ -493,7 +482,6 @@ struct PBVHBatches {
}
}
- ATTR_NO_OPT
void fill_vbo_faces(PBVHVbo &vbo, PBVH_GPU_Args *args)
{
int totvert = args->totprim * 3;