Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GL レンダリング コンテキストを正常に作成しました (すべての WinApi 関数の戻り値を確認しました)。次のコードを使用してコンテキストを破棄しようとすると、失敗します。
bool success = ::wglMakeCurrent ( 0, 0 ); // false success = ::wglDeleteContext ( glRenderingContext_ ); // false
上記のすべてが 1 つのスレッドで発生します。なにが問題ですか?
この呼び出しを行う前に、デバイスとレンダリング コンテキストを保持していたウィンドウを破棄しましたか? ウィンドウを破棄する前に、レンダリング コンテキストをシャットダウンする必要があります。