diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-11-22 21:46:31 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-11-22 21:47:54 +0300 |
commit | c402a379a23af71aa5c21566967b75ab5c869e01 (patch) | |
tree | f7bf5b05bdcbf191bd0bfca1c0f89a1a441770d1 /source/gameengine/BlenderRoutines | |
parent | 3e1a9ee386b054912b540b7a061d76235f4049fa (diff) |
Remove vertex array support from GPUBuffers. Remove USER_DISABLE_VBO. All
GPUBuffer rendering is now done using vertex buffers.
Vertex arrays are completely removed from GL 3.2 core profile, so we'll
have to do this change at some point anyway.
This commit, though big, is not modifying blender in any way. Use should
be exactly as if the vetex buffer option is constantly on.
Diffstat (limited to 'source/gameengine/BlenderRoutines')
-rw-r--r-- | source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp index e3c8c894033..6832b4191f5 100644 --- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp +++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp @@ -253,10 +253,6 @@ 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; - // Globals to be carried on over blender files GlobalSettings gs; gs.matmode= startscene->gm.matmode; @@ -676,9 +672,6 @@ 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.main->name, oldsce, sizeof(G.main->name)); |