static void dispose(long pData){
  D3DRenderQueue rq=D3DRenderQueue.getInstance();
  rq.lock();
  try {
    RenderBuffer buf=rq.getBuffer();
    rq.ensureCapacityAndAlignment(12,4);
    buf.putInt(DISPOSE_SURFACE);
    buf.putLong(pData);
    rq.flushNow();
  }
  finally {
    rq.unlock();
  }
}

static void dispose ( long pData ) { D3DRenderQueue rq = D3DRenderQueue . getInstance ( ) ; rq . lock ( ) ; try { RenderBuffer buf = rq . getBuffer ( ) ; rq . ensureCapacityAndAlignment ( 12 , 4 ) ; buf . putInt ( DISPOSE_SURFACE ) ; buf . putLong ( pData ) ; rq . flushNow ( ) ; } finally { rq . unlock ( ) ; } }
disposes the native resources associated with the given d3dsurfacedata ( referenced by the pdata parameter ) . this method is invoked from the native dispose ( ) method from the disposer thread when the java - level d3dsurfacedata object is about to go away .
