Skip to content

Commit

Permalink
fix: 修正 IMAGE::gentexture 的会引发栈溢出的问题 (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anglebase authored Sep 22, 2024
1 parent 8308aef commit cfb15e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void IMAGE::gentexture(bool gen)
}
} else {
if (m_texture != NULL) {
gentexture(true);
gentexture(false);
}
Gdiplus::Bitmap* bitmap =
new Gdiplus::Bitmap(getwidth(), getheight(), getwidth() * 4, PixelFormat32bppARGB, (BYTE*)getbuffer());
Expand Down

0 comments on commit cfb15e0

Please sign in to comment.