This commit is contained in:
wheremyfoodat 2023-07-09 01:44:25 +03:00
parent e41076522c
commit c88ab423d3
2 changed files with 11 additions and 11 deletions

View file

@ -59,7 +59,7 @@ public:
if constexpr (evictOnOverflow) { // Do a ring buffer if evictOnOverflow is true
if constexpr (std::is_same<SurfaceType, ColourBuffer>() || std::is_same<SurfaceType, DepthBuffer>()) {
Helpers::panicDev("Colour/Depth buffer cache overflowed, currently stubbed to do a ring-buffer. This might snap in half");
}
}
auto& e = buffer[evictionIndex];
evictionIndex = (evictionIndex + 1) % capacity;