瀏覽代碼

Remove no-op ReleaseDC

Camilla Berglund 10 年之前
父節點
當前提交
12903ee9b5
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      src/wgl_context.c

+ 0 - 6
src/wgl_context.c

@@ -476,12 +476,6 @@ void _glfwDestroyContext(_GLFWwindow* window)
         _glfw_wglDeleteContext(window->context.wgl.handle);
         window->context.wgl.handle = NULL;
     }
-
-    if (window->context.wgl.dc)
-    {
-        ReleaseDC(window->win32.handle, window->context.wgl.dc);
-        window->context.wgl.dc = NULL;
-    }
 }
 
 // Analyzes the specified context for possible recreation