From ded8587d2dead5c520f3c33a81dcd70ee6393c1a Mon Sep 17 00:00:00 2001 From: Guy Zadickario Date: Tue, 2 Aug 2011 15:20:46 +0300 Subject: opengles emulator: Fixed Windows renderer termination Make the event pump loop in the renderer process we do on Windows exit when the Framebuffer's subwindow is destroyed. Fixed TcpStream to close the socket using 'closesocket' on windows, otherwise the other end of the socket does not sense that the socket is closed. + Use WS_DISABLED to ensure that our GL subwindow doesn't receive any input events. Change-Id: Icb477b3e1d7993a8880acb5e01bc5da29309ae50 --- tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp') diff --git a/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp b/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp index f144a9f3b..4e947daa5 100644 --- a/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp +++ b/tools/emulator/opengl/shared/OpenglCodecCommon/TcpStream.cpp @@ -44,7 +44,11 @@ TcpStream::TcpStream(int sock, size_t bufSize) : TcpStream::~TcpStream() { if (m_sock >= 0) { +#ifdef _WIN32 + closesocket(m_sock); +#else ::close(m_sock); +#endif } if (m_buf != NULL) { free(m_buf); -- cgit v1.2.3