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
This commit is contained in:
committed by
David 'Digit' Turner
parent
6bb9511365
commit
ded8587d2d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user