Sign in to follow this  

TextureLoader.FromStream(device, stream) problem

Recommended Posts

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]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this