Skip to content

Commit

Permalink
FIX: [droid] GetNativeWindow returns a pointer to pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Jan 26, 2018
1 parent d0067a9 commit e756cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/windowing/egl/EGLNativeTypeAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ bool CEGLNativeTypeAndroid::SetNativeResolution(const RESOLUTION_INFO &res)
else if (abs(currentRefreshRate() - res.fRefreshRate) > 0.0001)
CXBMCApp::get()->SetRefreshRate(res.fRefreshRate);

EGLNativeWindowType *nativeWindow = (EGLNativeWindowType*)CXBMCApp::GetNativeWindow(30000);
if (nativeWindow)
EGLNativeWindowType* *nativeWindow = (EGLNativeWindowType**)CXBMCApp::GetNativeWindow(30000);
if (nativeWindow && *nativeWindow)
CXBMCApp::SetBuffersGeometry(res.iWidth, res.iHeight);

return true;
Expand Down

0 comments on commit e756cc5

Please sign in to comment.