1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:47:34 +00:00

LibSoftGPU: Reduce number of samplers to 2

OpenGL mandates at least 2 texture units when multitexturing is
supported. This keeps our vertices lean and gives a nice speed
improvement in glquake. Until we support shaders this should be enough.
This commit is contained in:
Stephan Unverwerth 2022-01-15 21:10:22 +01:00 committed by Andreas Kling
parent 12f63df329
commit a5040ecdfc

View file

@ -15,7 +15,7 @@
namespace SoftGPU {
static constexpr bool ENABLE_STATISTICS_OVERLAY = false;
static constexpr int NUM_SAMPLERS = 32;
static constexpr int NUM_SAMPLERS = 2;
static constexpr int SUBPIXEL_BITS = 5;
static constexpr int NUM_LIGHTS = 8;