mirror of
https://github.com/rt64/rt64.git
synced 2025-03-11 22:14:16 +00:00
Fix initialization warnings from Clang.
This commit is contained in:
parent
5a47ca123b
commit
66057e8d51
@ -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 = {};
|
||||
|
@ -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;
|
||||
|
@ -157,7 +157,7 @@ namespace RT64 {
|
||||
VIHistory::VIHistory() {
|
||||
historyCursor = 0;
|
||||
factorCursor = 0;
|
||||
history.fill({ 0 });
|
||||
history.fill({});
|
||||
factors.fill(0);
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ namespace RT64 {
|
||||
return textures[index];
|
||||
}
|
||||
|
||||
const size_t TextureMap::getMaxIndex() const {
|
||||
size_t TextureMap::getMaxIndex() const {
|
||||
return textures.size();
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user