real fix for [2440014] launcher2 crashing in loop during boot
Surface* cannot be casted to void* and then to android_native_window_t*
diff --git a/rsContext.cpp b/rsContext.cpp
index e94aece..dec993a 100644
--- a/rsContext.cpp
+++ b/rsContext.cpp
@@ -857,9 +857,9 @@
rsc->resume();
}
-void rsi_ContextSetSurface(Context *rsc, uint32_t w, uint32_t h, void *sur)
+void rsi_ContextSetSurface(Context *rsc, uint32_t w, uint32_t h, android_native_window_t *sur)
{
- rsc->setSurface(w, h, (android_native_window_t *)sur);
+ rsc->setSurface(w, h, sur);
}
void rsi_ContextSetPriority(Context *rsc, int32_t p)