• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Main repository of MikuMikuStudio


Commit MetaInfo

Revisiona8db1908a4c63342b143f28da78d5b3c6e19d200 (tree)
Time2013-05-23 11:46:48
AuthorshadowisLORD <shadowisLORD@75d0...>
CommitershadowisLORD

Log Message

  • When deleting native object, avoid using toString() for logging

git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10632 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

Change Summary

Incremental Difference

--- a/engine/src/core/com/jme3/util/NativeObjectManager.java
+++ b/engine/src/core/com/jme3/util/NativeObjectManager.java
@@ -135,12 +135,14 @@ public class NativeObjectManager {
135135
136136 assert ref == null || ref == ref2;
137137
138+ int id = obj.getId();
139+
138140 // Delete object from the GL driver
139141 obj.deleteObject(rendererObject);
140142 assert obj.getId() == NativeObject.INVALID_ID;
141143
142144 if (logger.isLoggable(Level.FINEST)) {
143- logger.log(Level.FINEST, "Deleted: {0}", obj);
145+ logger.log(Level.FINEST, "Deleted: {0}", obj.getClass().getSimpleName() + "/" + id);
144146 }
145147
146148 if (realObj != null){