Advertisement Jump to content


This topic is now archived and is closed to further replies.


D3DXCreateTextureFromFileInMemoryEx not working

This topic is 5342 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

I''m trying to load a texture from a zip file using zlib and I''ve gotten it to work with D3DXCreateTextureFromFileInMemory() but when I use D3DXCreateTextureFromFileInMemoryEx my textures don''t show. Here''s the arguments I''m passing.
if( FAILED( D3DXCreateTextureFromFileInMemoryEx( g_pd3dDevice, ImageBuffer,
				infostruct.uncompressed_size,0,0,1,0,D3DFMT_UNKNOWN,D3DPOOL_DEFAULT,D3DX_FILTER_DITHER,0,0x00FF00FF,&ImageInfo,NULL, &spritemanager[i].pSmngTextureReference[j] ) ) )
anyone know the solution?

Share this post

Link to post
Share on other sites
Thanks, that seems to have fixed my problem with the textures not showing but now my light doesn''t work..for why?

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!