🐛 Cap GPU max texture size at 4096

This commit is contained in:
Alejandro Alonso 2026-06-19 09:38:38 +02:00 committed by GitHub
parent 564cd1b528
commit 2a5c29421f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@ use skia_safe::gpu::{
use skia_safe::{self as skia, ISize};
const MIN_MAX_TEXTURE_SIZE: i32 = 512;
const MAX_MAX_TEXTURE_SIZE: i32 = 8192 * 2;
const MAX_MAX_TEXTURE_SIZE: i32 = 4096;
#[derive(Debug, Clone)]
pub struct GpuState {