Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualTim Sarbin

Posted 20 January 2013 - 11:04 PM

Apparently while i was shuffling code I forgot to set the size and was 0, now I get INVALIDDATA instead of INVALIDCALL smile.png

 

**EDIT**

Checked out the console output now that i'm linking to debug libs. It says:

D3DX: Unsupported file format

 

So I guess D3D9 does not support PNG? If not then I guess I can just load it myself via libpng and pixel buffers.

 

**EDIT2**

 

Upon further research, my C++ style of loading via ifstream was full of fail. For kicks I reverted to the C style of fopen with "rb" and what do you know, load successful :D

 

Thanks again guys!


#2Tim Sarbin

Posted 20 January 2013 - 11:01 PM

Apparently while i was shuffling code I forgot to set the size and was 0, now I get INVALIDDATA instead of INVALIDCALL smile.png

 

**EDIT**

Checked out the console output now that i'm linking to debug libs. It says:

D3DX: Unsupported file format

 

So I guess D3D9 does not support PNG? If not then I guess I can just load it myself via libpng and pixel buffers.


#1Tim Sarbin

Posted 20 January 2013 - 10:43 PM

Apparently while i was shuffling code I forgot to set the size and was 0, now I get INVALIDDATA instead of INVALIDCALL :)


PARTNERS