glCreateShader crashing

Apprentice
Posts: 16
Joined: 2009.01
Post: #1
I'm trying to implement GLSL shaders. For some reason, I crash with an EXC_BAD_ACCESS error when I try to call glCreateShader. Blink This is on a MacBook Pro with Leopard, so I'd be surprised if shaders aren't supported.

Update

Never mind. I was trying to call glCreateShader before the OpenGL context was set up. I moved it to the prepareOpenGL method of my graphics view to fix everything.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  ImageIO texture loader crashing - Cocoa mahalis 4 3,078 Aug 16, 2006 07:33 AM
Last Post: djork
  SDL_mixer crashing on loop - why? sealfin 8 5,718 Jan 26, 2005 09:25 PM
Last Post: aaronsullivan
  Texture crashing issues Josh 9 3,552 Apr 11, 2003 07:49 PM
Last Post: Josh