Commit 46b36fba authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

nativewindowpriv: don't connect before ics

This broke direct rendering on honeycomb.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c094e92c
...@@ -81,8 +81,6 @@ static int window_connect( ANativeWindow *anw ) ...@@ -81,8 +81,6 @@ static int window_connect( ANativeWindow *anw )
{ {
#if ANDROID_API >= 14 #if ANDROID_API >= 14
return native_window_api_connect( anw, NATIVE_WINDOW_API_MEDIA ); return native_window_api_connect( anw, NATIVE_WINDOW_API_MEDIA );
#else
return native_window_connect( anw, NATIVE_WINDOW_API_EGL );
#endif #endif
} }
...@@ -90,8 +88,6 @@ static int window_disconnect( ANativeWindow *anw ) ...@@ -90,8 +88,6 @@ static int window_disconnect( ANativeWindow *anw )
{ {
#if ANDROID_API >= 14 #if ANDROID_API >= 14
return native_window_api_disconnect( anw, NATIVE_WINDOW_API_MEDIA ); return native_window_api_disconnect( anw, NATIVE_WINDOW_API_MEDIA );
#else
return native_window_disconnect( anw, NATIVE_WINDOW_API_EGL );
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment