mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
parent
5f12696bed
commit
f544b7d7b4
@ -277,7 +277,7 @@ public class BitmapUtil {
|
||||
}
|
||||
|
||||
public static int getMaxTextureSize() {
|
||||
final int IMAGE_MAX_BITMAP_DIMENSION = 2048;
|
||||
final int MAX_ALLOWED_TEXTURE_SIZE = 2048;
|
||||
|
||||
EGL10 egl = (EGL10) EGLContext.getEGL();
|
||||
EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
|
||||
@ -303,6 +303,6 @@ public class BitmapUtil {
|
||||
|
||||
egl.eglTerminate(display);
|
||||
|
||||
return Math.max(maximumTextureSize, IMAGE_MAX_BITMAP_DIMENSION);
|
||||
return Math.min(maximumTextureSize, MAX_ALLOWED_TEXTURE_SIZE);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user