mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-08 22:07:14 +00:00
fix: UB bit shift in Texture.cpp
This commit is contained in:
parent
1f8900f430
commit
0cd062833c
|
|
@ -130,7 +130,7 @@ void Texture::_init(const std::wstring& name, int mode, int width, int height,
|
|||
if (mipmapped) {
|
||||
for (unsigned int level = 1; level < m_iMipLevels; ++level) {
|
||||
int ww = width >> level;
|
||||
int hh = height >> height;
|
||||
int hh = height >> level;
|
||||
|
||||
byteArray tempBytes = byteArray(ww * hh * depth * 4);
|
||||
for (int index = 0; index < tempBytes.length; index++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue