mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
chore(ui): fix style nits in SetupFormats
This commit is contained in:
parent
a6317ead69
commit
aefd14b1ab
@ -22,17 +22,11 @@ void SetupFormats() {
|
|||||||
TSGrowableArray<CGxFormat> adapterFormats;
|
TSGrowableArray<CGxFormat> adapterFormats;
|
||||||
GxAdapterFormats(GxApi_OpenGl, adapterFormats);
|
GxAdapterFormats(GxApi_OpenGl, adapterFormats);
|
||||||
|
|
||||||
int32_t gxColorBits = 0;
|
|
||||||
auto gxColorBitsVar = CVar::Lookup("gxColorBits");
|
auto gxColorBitsVar = CVar::Lookup("gxColorBits");
|
||||||
if (gxColorBitsVar) {
|
int32_t gxColorBits = gxColorBitsVar ? gxColorBitsVar->GetInt() : 0;
|
||||||
gxColorBits = gxColorBitsVar->GetInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
int32_t gxDepthBits = 0;
|
|
||||||
auto gxDepthBitsVar = CVar::Lookup("gxDepthBits");
|
auto gxDepthBitsVar = CVar::Lookup("gxDepthBits");
|
||||||
if (gxDepthBitsVar) {
|
int32_t gxDepthBits = gxDepthBitsVar ? gxDepthBitsVar->GetInt() : 0;
|
||||||
gxDepthBits = gxDepthBitsVar->GetInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO what about gxMultisample CVar?
|
// TODO what about gxMultisample CVar?
|
||||||
|
|
||||||
@ -47,7 +41,7 @@ void SetupFormats() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t formatPresent = false;
|
auto formatPresent = false;
|
||||||
|
|
||||||
for (uint32_t j = 0; j < s_multisampleFormats.Count(); j++) {
|
for (uint32_t j = 0; j < s_multisampleFormats.Count(); j++) {
|
||||||
auto& multisampleFormat = s_multisampleFormats[j];
|
auto& multisampleFormat = s_multisampleFormats[j];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user