mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix compiler warnings (GCC + Clang)
This commit is contained in:
parent
6c3d2d0907
commit
3d22de761f
50 changed files with 80 additions and 103 deletions
|
|
@ -21,11 +21,10 @@ ParticlesRenderer::ParticlesRenderer(
|
|||
const Chunks& chunks,
|
||||
const GraphicsSettings* settings
|
||||
)
|
||||
: batch(std::make_unique<MainBatch>(4096)),
|
||||
level(level),
|
||||
chunks(chunks),
|
||||
: chunks(chunks),
|
||||
assets(assets),
|
||||
settings(settings) {
|
||||
settings(settings),
|
||||
batch(std::make_unique<MainBatch>(4096)) {
|
||||
}
|
||||
|
||||
ParticlesRenderer::~ParticlesRenderer() = default;
|
||||
|
|
@ -171,7 +170,6 @@ void ParticlesRenderer::render(const Camera& camera, float delta) {
|
|||
continue;
|
||||
}
|
||||
auto texture = emitter.getTexture();
|
||||
const auto& found = particles.find(texture);
|
||||
std::vector<Particle>* vec;
|
||||
vec = &particles[texture];
|
||||
emitter.update(delta, camera.position, *vec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue