![]() |
|
Pointer Warning in glGenTextures - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Graphics & Audio Programming (/forum-9.html) +--- Thread: Pointer Warning in glGenTextures (/thread-2684.html) |
Pointer Warning in glGenTextures - Pixelated - Apr 6, 2008 11:05 AM (I've been lurking this site for a long time, and have really enjoyed reading the posts here. Hopefully you guys can help me out on this one) I've got a small problem... I'm teaching myself Cocoa with OpenGL, and was writing a small program for practice to display a square and, with the right and left arrow keys, rotate it. The next step was for me to attempt to apply a texture to the object. For the texture loading code, I wrote this: Code: -(void) loadTexturesHowever, when I build the code, I get the warning "pointer targets in passing argument 2 of 'glGenTextures' differ in signedness". When I compile the code, this occurs: Code: [Session started at 2008-04-06 14:01:10 -0400.]After that, no window pops up or anything. If I comment out the code, though, the program works normally. I've checked the debugger, but, considering I've never used it before, didn't see anything interesting. I'm on a MacBook Pro 15.4" with 2GB RAM and 512MB VRAM. ** EDIT ** I got rid of the warning (texture was a GLint when it should have been a GLuint), but the program still crashes. Looking further into it, it appears to be because of an error EXEC_BAD_ACCESS (SIGSEGV). Any suggestions? Pointer Warning in glGenTextures - OneSadCookie - Apr 6, 2008 01:28 PM If you're reporting a crash, you need to post a crash log. That said, it's very likely that this is because you're making an OpenGL call at a time when you don't have a current context. |