Original Post
When I run my program the first time, it runs fine. Then when running it again, i get this error:
ERROR_INVALID_HANDLE
The handle that was passed to the API has been either invalidated or closed.
Generated by this code
dw recieves an error code of 6 which is the error above. After running my program once, all opengl applications cant run anymore, less i restart the computer every time. Why could it be doing this?
glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC) wglGetProcAddress( "glActiveTextureARB" );
if( glActiveTextureARB == NULL )
{
DWORD dw = GetLastError();
}