Jump to content
  • Advertisement
Sign in to follow this  
tiramisung

TextureLoader.FromStream(device, stream) problem

This topic is 3155 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!