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
Notes: sideshowbarker 2024-07-17 20:38:49 +09:00

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;