use pixelRatio properly

This commit is contained in:
Nick Fisher
2023-10-26 11:27:42 +11:00
parent 38b58b6d8f
commit a56943fb86
3 changed files with 23 additions and 24 deletions

View File

@@ -11,7 +11,9 @@ enum ToneMapper { ACES, FILMIC, LINEAR }
class TextureDetails {
final int textureId;
final int width;
// both width and height are in physical, not logical pixels
final int width;
final int height;
TextureDetails(