mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Clear the shaders after destroying them. This closes #22
This commit is contained in:
parent
de464802cf
commit
392c6f140a
@ -164,12 +164,15 @@ void MoonlightInstance::VidDecCleanup(void) {
|
|||||||
|
|
||||||
if (g_Instance->m_Texture2DShader.program) {
|
if (g_Instance->m_Texture2DShader.program) {
|
||||||
glDeleteProgram(g_Instance->m_Texture2DShader.program);
|
glDeleteProgram(g_Instance->m_Texture2DShader.program);
|
||||||
|
g_Instance->m_Texture2DShader.program = 0;
|
||||||
}
|
}
|
||||||
if (g_Instance->m_RectangleArbShader.program) {
|
if (g_Instance->m_RectangleArbShader.program) {
|
||||||
glDeleteProgram(g_Instance->m_RectangleArbShader.program);
|
glDeleteProgram(g_Instance->m_RectangleArbShader.program);
|
||||||
|
g_Instance->m_RectangleArbShader.program = 0;
|
||||||
}
|
}
|
||||||
if (g_Instance->m_ExternalOesShader.program) {
|
if (g_Instance->m_ExternalOesShader.program) {
|
||||||
glDeleteProgram(g_Instance->m_ExternalOesShader.program);
|
glDeleteProgram(g_Instance->m_ExternalOesShader.program);
|
||||||
|
g_Instance->m_ExternalOesShader.program = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user