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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-12-18 21:16:52 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-12-18 21:16:52 +0300
commit82921ce42002901791d786890c232dc6768c8e62 (patch)
treef4fd36aabfaf058d8abdd2b40d96520cdbc72e9a /source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
parent672f2efbe68ff6e75b0994358fa0269fc7105f43 (diff)
OpenSubdiv: Avoid having bad-level call
This is always asking for problems. Additionally, that call was leading to OpenGL calls happening from threads.
Diffstat (limited to 'source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c')
-rw-r--r--source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
index 0f61a50ed13..2bb55c2d1ed 100644
--- a/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
+++ b/source/blender/blenkernel/intern/CCGSubSurf_opensubdiv.c
@@ -44,6 +44,7 @@
#include "opensubdiv_converter_capi.h"
#include "GL/glew.h"
+#include "GPU_extensions.h"
#define OSD_LOG if (false) printf
@@ -987,7 +988,7 @@ void ccgSubSurf__delete_pending(void)
void BKE_subsurf_osd_init(void)
{
- openSubdiv_init();
+ openSubdiv_init(GPU_legacy_support());
BLI_spin_init(&delete_spin);
}