From 22a18c5ba48f95773727d02fa59e002ae249d7cd Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sun, 2 Dec 2012 15:57:33 +0000 Subject: [PATCH] Fixed issue int RnederManager.proeloadScene that was causing failure when attempting to load CPU usage buffers to the GPU git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10018 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/renderer/RenderManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/renderer/RenderManager.java b/engine/src/core/com/jme3/renderer/RenderManager.java index e106b667e..5ff367798 100644 --- a/engine/src/core/com/jme3/renderer/RenderManager.java +++ b/engine/src/core/com/jme3/renderer/RenderManager.java @@ -596,7 +596,7 @@ public class RenderManager { Mesh mesh = gm.getMesh(); if (mesh != null) { for (VertexBuffer vb : mesh.getBufferList().getArray()) { - if (vb.getData() != null) { + if (vb.getData() != null && vb.getUsage() != VertexBuffer.Usage.CpuOnly) { renderer.updateBufferData(vb); } }