diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2022-01-15 17:20:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-19 19:57:49 +0100 |
commit | 5505f353e8bf3cebdec4e332adf93cbcb923a890 (patch) | |
tree | effeebc983307980ba338b1c2bb8bf29e37fc3f5 | |
parent | 0367893e53fe8b4a0a338fd919fac1aac0e7bd82 (diff) | |
download | serenity-5505f353e8bf3cebdec4e332adf93cbcb923a890.zip |
LibSoftGPU: Announce NPOT texture support via DeviceInfo struct
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Device.cpp | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibSoftGPU/DeviceInfo.h | 1 |
2 files changed, 2 insertions, 0 deletions
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; }; } |