Windows: Correct some variable init warnings.

This commit is contained in:
Unknown W. Brackets 2021-02-15 10:20:15 -08:00
parent 4a33b5d4e2
commit 7119011363
5 changed files with 10 additions and 10 deletions

View file

@ -336,7 +336,7 @@ void CGEDebugger::UpdatePreviews() {
return;
}
GPUgstate state = {0};
GPUgstate state{};
if (gpuDebug != nullptr) {
state = gpuDebug->GetGState();
@ -487,7 +487,7 @@ void CGEDebugger::PrimaryPreviewHover(int x, int y) {
desc[0] = 0;
} else if (x < 0 || y < 0) {
// This means they left the area.
GPUgstate state = {0};
GPUgstate state{};
if (gpuDebug != nullptr) {
state = gpuDebug->GetGState();
}
@ -515,7 +515,7 @@ void CGEDebugger::SecondPreviewHover(int x, int y) {
desc[0] = 0;
} else if (x < 0 || y < 0) {
// This means they left the area.
GPUgstate state = {0};
GPUgstate state{};
if (gpuDebug != nullptr) {
state = gpuDebug->GetGState();
}
@ -677,7 +677,7 @@ void CGEDebugger::DescribePixelRGBA(u32 pix, GPUDebugBufferFormat fmt, int x, in
}
void CGEDebugger::UpdateTextureLevel(int level) {
GPUgstate state = {0};
GPUgstate state{};
if (gpuDebug != nullptr) {
state = gpuDebug->GetGState();
}