Fix initialization warnings from Clang.

This commit is contained in:
Dario 2024-05-01 09:06:36 -03:00
parent 5a47ca123b
commit 66057e8d51
5 changed files with 6 additions and 6 deletions

View File

@ -50,10 +50,10 @@ namespace RT64 {
projMatrixStack[0] = hlslpp::float4x4(0.0f);
viewProjMatrixStack[0] = hlslpp::float4x4(0.0f);
invViewProjMatrixStack[0] = hlslpp::float4x4(0.0f);
vertices.fill({ 0 });
vertices.fill({});
indices.fill(0);
used.reset();
lights.fill({ 0 });
lights.fill({});
segments.fill(0);
viewportStack[0] = {};
textureState = {};

View File

@ -834,7 +834,7 @@ namespace RT64 {
extraParams.rspLightDiffuseMix = gameConfig.rspLightAsDiffuse ? gameConfig.rspLightIntensity : 0.0f;
shaderDesc.colorCombiner = callDesc.colorCombiner;
shaderDesc.otherMode = callDesc.otherMode;
shaderDesc.flags = { 0 };
shaderDesc.flags = {};
// TODO: Reimplement proper decals in RT.
const float DepthDecalBias = 0.02f;

View File

@ -157,7 +157,7 @@ namespace RT64 {
VIHistory::VIHistory() {
historyCursor = 0;
factorCursor = 0;
history.fill({ 0 });
history.fill({});
factors.fill(0);
}

View File

@ -135,7 +135,7 @@ namespace RT64 {
return textures[index];
}
const size_t TextureMap::getMaxIndex() const {
size_t TextureMap::getMaxIndex() const {
return textures.size();
}

View File

@ -65,7 +65,7 @@ namespace RT64 {
void incrementLock();
void decrementLock();
const Texture *get(uint32_t index) const;
const size_t getMaxIndex() const;
size_t getMaxIndex() const;
};
struct TextureCache {