Skip to content

Commit 0a2e4a6

Browse files
committed
[[ Bug 21434 ]] Force bitmap view visible for visual effects
This patch fixes a regresion from a previous patch that changed the behavior of the `showBitmapView` method to only set the visibility of `m_bitmap_view` to visible if the OpenGL view is not visible. This interfered with visual effects as they uset the bitmap view rather than OpenGL view.
1 parent bf332aa commit 0a2e4a6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/notes/bugfix-21434.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix visual effects not working when acceleratedRendering is true on Android

engine/src/java/com/runrev/android/Engine.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2251,7 +2251,8 @@ public void run() {
22512251

22522252
public void showBitmapView()
22532253
{
2254-
ensureBitmapViewVisibility();
2254+
// force visible for visual effects
2255+
m_bitmap_view.setVisibility(View.VISIBLE);
22552256
}
22562257

22572258
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)