charliejay
12-13-2011, 03:55 AM
Just out of curiousity...
So I'm reading this discussion scrap opengl32.dll (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=307480#Post3074 80) where Alfonse Reinheart links (on page 2) to Creating an OpenGL Context (http://www.opengl.org/wiki/Creating_an_OpenGL_Context#Proper_Context_Creation )
where it says
Fortunately, this context does not need to be our final context. All we need to do is create a dummy context to get function pointers, then use those functions directly. Unfortunately, Windows does not allow recreation of a rendering context within a single window. You must destroy the window entirely and recreate it after we are finished with the dummy context.
I'm pretty sure my code for getting a 4.1 context does so (successfully) by creating the dummy context AND the final 4.1 context on the same window, seeming to contradict what is said in the quoted paragraph.
Could someone clarify for me whether the statement is correct, and if so, under what circumstances, please?
So I'm reading this discussion scrap opengl32.dll (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=307480#Post3074 80) where Alfonse Reinheart links (on page 2) to Creating an OpenGL Context (http://www.opengl.org/wiki/Creating_an_OpenGL_Context#Proper_Context_Creation )
where it says
Fortunately, this context does not need to be our final context. All we need to do is create a dummy context to get function pointers, then use those functions directly. Unfortunately, Windows does not allow recreation of a rendering context within a single window. You must destroy the window entirely and recreate it after we are finished with the dummy context.
I'm pretty sure my code for getting a 4.1 context does so (successfully) by creating the dummy context AND the final 4.1 context on the same window, seeming to contradict what is said in the quoted paragraph.
Could someone clarify for me whether the statement is correct, and if so, under what circumstances, please?