Hi, I'm currently working on learning the new standard of opengl and i'm trying to create a class to deal with opengl initializations, the problem i'm having is concerning the GLTool kit that when ever it tries to initialize the stock shaders it crashes I've tryed debugging it but it just leads me to a hash define created in glew which all it primarily does is return an address to a shader, I don't know what is being done wrong, please could someone help me figure this out, I'm partly thinking it might be something in my code but I cannot find anything that could be causing the issue.
Problem solved: If your using glew make sure that you make a call to glewInit after setting the pixel format to get all the extensions available on the pc your working on.
This post has been edited by Kain6622: 23 May 2011 - 07:05 AM
I've tried to reproduce the error without the use of GLTools but I don't get any errors but when i try to draw anything with the old opengl commands nothing shows apart from the colour i tell it to clear the screen too? I'm not sure but could I maybe be doing something wrong with my pointers??
edit: I missed a break in the window message loop switch statement but unfortunately that does not solve the problem.
This post has been edited by Kain6622: 22 May 2011 - 04:31 PM
I've got the program to render basic opengl ( problem was related to the pointer to the HDC aswell as the resize function needing to be called after the pixel format function), but still have the same issue with the GLTools and the access violation, just for information I'm using a ATI Mobile radeon HD 5870 and have done tests with gpu programs to make sure that my laptop was compatable with the new standard and extension.
This post has been edited by Kain6622: 22 May 2011 - 05:10 PM
Ok I've gone through the code a few time and the books and you where right ButchDean I had forgootten to initialize glew before the loading of the shaders :S, thank you everyone for the help, i'll try be more careful next time .