Permalink
Browse files

FIX: [droid] Crash after regaining focus (fixes #13455)

  • Loading branch information...
1 parent 0be99e9 commit 64ce046323704aaf02047adb4f0ecf50cf979aaa @koying committed Nov 1, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 xbmc/windowing/egl/EGLNativeType.h
  2. +1 −0 xbmc/windowing/egl/EGLNativeTypeAndroid.cpp
@@ -145,5 +145,5 @@ class CEGLNativeType
protected:
XBNativeDisplayType m_nativeDisplay;
- XBNativeWindowType m_nativeWindow;
+ mutable XBNativeWindowType m_nativeWindow;
};
@davilla

davilla Nov 2, 2012

is there a reason this needs to be mutable ?

@koying

koying via email Nov 2, 2012

Owner
@@ -78,6 +78,7 @@ bool CEGLNativeTypeAndroid::GetNativeWindow(XBNativeWindowType **nativeWindow) c
{
if (!nativeWindow)
return false;
+ m_nativeWindow = CXBMCApp::GetNativeWindow();
*nativeWindow = (XBNativeWindowType*) &m_nativeWindow;
return true;
}

0 comments on commit 64ce046

Please sign in to comment.