瀏覽代碼

fix dx7/dx9 crash

David Rose 21 年之前
父節點
當前提交
47e094a9da
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      panda/src/display/graphicsStateGuardian.cxx

+ 4 - 4
panda/src/display/graphicsStateGuardian.cxx

@@ -325,11 +325,11 @@ release_index_buffer(IndexBufferContext *) {
 ////////////////////////////////////////////////////////////////////
 CPT(qpGeomMunger) GraphicsStateGuardian::
 get_geom_munger(const RenderState *state) {
-  // The default implementation returns a munger that does nothing,
-  // but presumably, every kind of GSG needs some special munging
-  // action, so real GSG's will override this to return something more
+  // The default implementation returns no munger at all, but
+  // presumably, every kind of GSG needs some special munging action,
+  // so real GSG's will override this to return something more
   // useful.
-  return qpGeomMunger::register_munger(new qpGeomMunger(this, state));
+  return NULL;
 }
 
 ////////////////////////////////////////////////////////////////////