Improved getMaxTextureSize

This commit is contained in:
M66B
2024-06-19 10:01:15 +02:00
parent 85342c2baf
commit b874442a78
2 changed files with 77 additions and 20 deletions

View File

@@ -470,7 +470,7 @@ public class DebugHelper {
float density = context.getResources().getDisplayMetrics().density;
sb.append(String.format("Density 1dp=%f\r\n", density));
sb.append(String.format("Resolution: %.2f x %.2f dp\r\n", dim.x / density, dim.y / density));
sb.append(String.format("Max. texture=%d\r\n", Helper.getMaxTextureSize()));
sb.append(String.format("Max. texture: %d px\r\n", Helper.getMaxTextureSize()));
Configuration config = context.getResources().getConfiguration();