mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Revert "Clear the display when tearing down the decoder. This closes #50"
This reverts commit 68aecaeed5139c8d6ad4f4a0cda4b60bd3c1b94f.
This commit is contained in:
parent
e90fe56f2b
commit
0d8f82a5f9
@ -116,7 +116,6 @@ class MoonlightInstance : public pp::Instance, public pp::MouseLock {
|
|||||||
|
|
||||||
void PaintFinished(int32_t result);
|
void PaintFinished(int32_t result);
|
||||||
void DispatchGetPicture(uint32_t unused);
|
void DispatchGetPicture(uint32_t unused);
|
||||||
void DispatchClearDisplay(uint32_t unused);
|
|
||||||
void PictureReady(int32_t result, PP_VideoPicture picture);
|
void PictureReady(int32_t result, PP_VideoPicture picture);
|
||||||
void PaintPicture(void);
|
void PaintPicture(void);
|
||||||
void InitializeRenderingSurface(int width, int height);
|
void InitializeRenderingSurface(int width, int height);
|
||||||
|
@ -143,11 +143,6 @@ void MoonlightInstance::VidDecSetup(int videoFormat, int width, int height, int
|
|||||||
g_Instance->m_CallbackFactory.NewCallback(&MoonlightInstance::DispatchGetPicture));
|
g_Instance->m_CallbackFactory.NewCallback(&MoonlightInstance::DispatchGetPicture));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoonlightInstance::DispatchClearDisplay(uint32_t unused) {
|
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
|
||||||
g_Instance->m_Graphics3D.SwapBuffers(pp::BlockUntilComplete());
|
|
||||||
}
|
|
||||||
|
|
||||||
void MoonlightInstance::DispatchGetPicture(uint32_t unused) {
|
void MoonlightInstance::DispatchGetPicture(uint32_t unused) {
|
||||||
// Queue the initial GetPicture callback on the main thread
|
// Queue the initial GetPicture callback on the main thread
|
||||||
g_Instance->m_VideoDecoder->GetPicture(
|
g_Instance->m_VideoDecoder->GetPicture(
|
||||||
@ -161,10 +156,6 @@ void MoonlightInstance::VidDecCleanup(void) {
|
|||||||
g_Instance->m_VideoDecoder->Flush(pp::BlockUntilComplete());
|
g_Instance->m_VideoDecoder->Flush(pp::BlockUntilComplete());
|
||||||
delete g_Instance->m_VideoDecoder;
|
delete g_Instance->m_VideoDecoder;
|
||||||
|
|
||||||
// Clear the current contents of the display
|
|
||||||
pp::Module::Get()->core()->CallOnMainThread(0,
|
|
||||||
g_Instance->m_CallbackFactory.NewCallback(&MoonlightInstance::DispatchClearDisplay));
|
|
||||||
|
|
||||||
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;
|
g_Instance->m_Texture2DShader.program = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user