Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 30 Oct 2009
Offline Last Active Mar 29 2012 03:35 AM

#4869707 D3DXCreateTextureFromFile == D3D_OK but crashing.

Posted by on 06 October 2011 - 02:20 AM

Creating a thread from DllMain is actually the correct way to do it.

However, unless you created your device with D3DCREATE_MULTITHREADED there's a good chance it will crash when you load the texture as resource creation in dx9 is not threadsafe and should only done from the main thread (correct me if i'm wrong)

Are you trying to make some sort of plugin system for your game or a generic dll that you can plug into any dx9 game?

What error are you getting anyway?