Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

fix raster cache error on low-end android devices #390

Merged
merged 1 commit into from
Nov 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Runtime/editor/window_config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ namespace Unity.UIWidgets.editor {
public class WindowConfig {
public readonly bool disableRasterCache;

public static float MaxRasterImageSize = 4096;
#if UNITY_ANDROID
//make API compatible to low-end Android devices
public static float MaxRasterImageSize = 2048;
#else
public static float MaxRasterImageSize = 4096;
#endif

static bool? _disableComputeBuffer = null;

Expand Down