Skip to content

Commit

Permalink
Minor: bugfix in texreplacer, darker alpha chessboard in texture viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 28, 2023
1 parent 7ab979a commit 80c6dbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GPU/Common/TextureReplacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ ReplacedTexture *TextureReplacer::FindReplacement(u64 cachekey, u32 hash, int w,
}
desc.logId = desc.filenames[0];
desc.hashfiles = desc.filenames[0]; // The generated filename of the top level is used as the key in the data cache.
// TODO: here `hashfiles` is set to an empty string, breaking stuff below.
hashfiles = desc.filenames[0];
} else {
desc.logId = hashfiles;
SplitString(hashfiles, '|', desc.filenames);
Expand Down
7 changes: 4 additions & 3 deletions Windows/GEDebugger/SimpleGLWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ void SimpleGLWindow::GenerateChecker() {
return;
}

const static u8 checkerboard[] = {
255,255,255,255, 195,195,195,255,
195,195,195,255, 255,255,255,255,
// 2x2 RGBA bitmap
static const u8 checkerboard[] = {
192,192,192,255, 128,128,128,255,
128,128,128,255, 192,192,192,255,
};

wglMakeCurrent(hDC_, hGLRC_);
Expand Down

0 comments on commit 80c6dbf

Please sign in to comment.