diff options
| author | Sonicadvance1 <sonicadvance1@gmail.com> | 2010-02-13 10:09:54 +0000 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@gmail.com> | 2010-02-13 10:09:54 +0000 |
| commit | c63446827f395934883e21de08586a83e1d9728f (patch) | |
| tree | ecca06738812cfd502a91ae38548e69119653f6a /Source/Core/Common/Src/OpenCL.cpp | |
| parent | df1be33ba97ed03817ad174da0325d9fab0fb2f5 (diff) | |
Fix crash when stopping and starting a game with OpenCL enabled
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5047 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/OpenCL.cpp')
| -rw-r--r-- | Source/Core/Common/Src/OpenCL.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/OpenCL.cpp b/Source/Core/Common/Src/OpenCL.cpp index 44ae1e8a53..660da5d382 100644 --- a/Source/Core/Common/Src/OpenCL.cpp +++ b/Source/Core/Common/Src/OpenCL.cpp @@ -180,6 +180,10 @@ void Destroy() return;
clReleaseCommandQueue(g_cmdq);
clReleaseContext(g_context);
+ g_context = NULL;
+ g_cmdq = NULL;
+
+ g_bInitialized = false;
#endif
}
|
