Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Access violation thrown by shaderManager.InitializeStockShaders()

  1. #1
    Intern Contributor
    Join Date
    May 2011
    Location
    Alabama, USA
    Posts
    66

    Access violation thrown by shaderManager.InitializeStockShaders()

    I'm trying to use the GLTools library with glew and wglew to make a OpenGL windows screensaver. Something is going wrong with ShaderManager.InitializeStockShader(). I set up my windows rendering context no problem and specify that I want to use OpenGL 3.1 functionality, but I'm not even sure if I need to use OpenGL 3.1 to accomplish my task. I just bumped it up thinking it might solve my problem. It didn't. Has anybody had problems using the GLTools library with glew or wglew? Because I think that's where the problem lies. If anybody could shed some light on this problem I'd appreciate. If you need more detail on what my issue is or need me to post my code just tell me and I will. I'm just hoping one of you out there knows what I'm coming up against from what I've explained so far. Thanks guys.
    Benjamin Barrett aka vindy
    "Our knowledge is finite, while our ignorance is infinite!"

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Singapore
    Posts
    800
    Hi, A few things that i remember about GLTools library.
    1) Make sure you set working directory by calling gltSetWorkingDirectory(argv[0]); before glutInit
    2) Make sure you set the glewExperimental = GL_TRUE; before glewInit() call.

    See if any of these help.
    Regards,
    Mobeen

  3. #3
    Intern Contributor
    Join Date
    May 2011
    Location
    Alabama, USA
    Posts
    66
    Hi Mobeen. Thanks for replying to my question. I've already done the glewExperimental = GL_TRUE; thing. And because I'm writing a win32 program here I don't get command line arguments passed to it the way you do with command line programs. All I really know about the shaderManager class is that it sets up some stock shaders for you so you can work with the new OpenGL core profile as intended, which as far as I know requires at least minimal shader with every OpenGL program you write.
    Benjamin Barrett aka vindy
    "Our knowledge is finite, while our ignorance is infinite!"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •