Hi,
One place in the MSDN documentation it says that I should release/delete the DC before deleting the GLRC, and another place it suggests the reverse order … ?
Hi,
One place in the MSDN documentation it says that I should release/delete the DC before deleting the GLRC, and another place it suggests the reverse order … ?
You slould release/delete things in vise versa than you created them. In your case if you wrote:
h_DC:=GetDC(hWnd);
…
h_RC:=wglCreateContext(h_DC);
you need to release these in this way:
wglDeleteContext(h_RC);
ReleaseDC(h_DC,hWnd);
Thanks - that’s also what my intuition told me
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.