From 5505f353e8bf3cebdec4e332adf93cbcb923a890 Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Sat, 15 Jan 2022 17:20:31 +0100 Subject: [PATCH] LibSoftGPU: Announce NPOT texture support via DeviceInfo struct --- Userland/Libraries/LibSoftGPU/Device.cpp | 1 + Userland/Libraries/LibSoftGPU/DeviceInfo.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index 3db2d7320e..5e11bcf168 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -605,6 +605,7 @@ DeviceInfo Device::info() const .num_texture_units = NUM_SAMPLERS, .num_lights = NUM_LIGHTS, .stencil_bits = sizeof(u8) * 8, + .supports_npot_textures = true, }; } diff --git a/Userland/Libraries/LibSoftGPU/DeviceInfo.h b/Userland/Libraries/LibSoftGPU/DeviceInfo.h index 840d87536b..602c4cbcff 100644 --- a/Userland/Libraries/LibSoftGPU/DeviceInfo.h +++ b/Userland/Libraries/LibSoftGPU/DeviceInfo.h @@ -16,6 +16,7 @@ struct DeviceInfo final { unsigned num_texture_units; unsigned num_lights; u8 stencil_bits; + bool supports_npot_textures; }; }