Commit 098dc32a authored by hybrid's avatar hybrid

Avoid problems with Intel drivers when passing 0 as HDc, calls are equivalent when context is 0.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4161 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 01c9bd4c
...@@ -635,7 +635,7 @@ COpenGLDriver::~COpenGLDriver() ...@@ -635,7 +635,7 @@ COpenGLDriver::~COpenGLDriver()
if (ExposedData.OpenGLWin32.HRc) if (ExposedData.OpenGLWin32.HRc)
{ {
if (!wglMakeCurrent(0, 0)) if (!wglMakeCurrent(HDc, 0))
os::Printer::log("Release of dc and rc failed.", ELL_WARNING); os::Printer::log("Release of dc and rc failed.", ELL_WARNING);
if (!wglDeleteContext((HGLRC)ExposedData.OpenGLWin32.HRc)) if (!wglDeleteContext((HGLRC)ExposedData.OpenGLWin32.HRc))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment