   TextureLoader.FromStream(device, stream) problem
  Hi,I had some problem relate to TextureLoader.FromStream(device, stream).1. May i know how to improve the TextureLoader.FromStream(device, stream) ? It very slow when execute this code. After that i had try to use the code below to get the texture :Texture t = new Texture(device, bitmap.Width, bitmap.Height, 1,Usage.Dynamic, Format.A8B8G8R8, Pool.Default);   However, it return  error of D3DERR_INVALIDCALL. Why this happen?2. May i know how to solve the E_OUTOFMEMORY problem? In my situation, the TextureLoader.FromStream(device, stream) is execute fine. After a few minute it had error of E_OUTOFMEMORY. Here, i wish i can get the solution. Thank you :p[Edited by - tiramisung on April 29, 2010 8:44:00 PM]