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
path: root/source
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2010-08-24 00:53:02 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2010-08-24 00:53:02 +0400
commit972c6d86f0c39371f96e712e381cdb160fa33314 (patch)
tree1c5fc0710751bc5c411a2d50bfc0e2d8d48c3fdb /source
parent61dd4cd2e24a5cdf0e6c9f218a750f6439f78153 (diff)
BGE bug #23213: VBO preference make object with modifiers crash the BGE. Fix by disabling VBO inside the BGE, it brings no advantage anyway.
Diffstat (limited to 'source')
-rw-r--r--source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
index b5b9c96a7ff..01a9e621304 100644
--- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
+++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
@@ -72,6 +72,7 @@ extern "C" {
/***/
#include "DNA_view3d_types.h"
#include "DNA_screen_types.h"
+#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
#include "BKE_global.h"
#include "BKE_report.h"
@@ -154,6 +155,10 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
bgl::InitExtensions(true);
+ // VBO code for derived mesh is not compatible with BGE (couldn't find why), so disable
+ int disableVBO = (U.gameflags & USER_DISABLE_VBO);
+ U.gameflags |= USER_DISABLE_VBO;
+
do
{
View3D *v3d= CTX_wm_view3d(C);
@@ -563,6 +568,9 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
} while (exitrequested == KX_EXIT_REQUEST_RESTART_GAME || exitrequested == KX_EXIT_REQUEST_START_OTHER_GAME);
+ if (!disableVBO)
+ U.gameflags &= ~USER_DISABLE_VBO;
+
if (bfd) BLO_blendfiledata_free(bfd);
BLI_strncpy(G.sce, oldsce, sizeof(G.sce));