• Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About ZachStiggelbout

  • Rank
  1. Hi, I'm trying to load a jpg image into an OpenGL texture and having a miserable time of it. I'm using visual studio 2010, windows 7, so it's a real bastard to try and use most of the image libraries which provide this functionality. I've been trying to use the method described here: [url=""]http://nehe.gamedev...._loading/18007/[/url] I'm able to get it to work in the example VS project provided, but can't figure out why it won't work in my own code. It's failing at this step: [code]hbmpTemp = CreateDIBSection(hdcTemp, &bi, DIB_RGB_COLORS, (void**)&pBits, 0, 0);[/code] But there is no error message, it just doesn't work, making it tricky to debug. Any ideas? Thanks, Zach