[Fix] (*/Texture*): Correctly handle the format in CopyTexImage2D.

This commit is contained in:
BZLZHH
2026-02-05 21:50:14 +08:00
parent 00eb158196
commit 68bdea41d2
6 changed files with 96 additions and 27 deletions
@@ -9,11 +9,14 @@
#pragma once
#include <Includes.h>
namespace MobileGL::MG_Util::TextureFormatProcessor {
namespace MobileGL {
enum class PixelFormatNormalizeOptionBit : Uint {
NoNorm16 = 1 << 0,
None = 0,
};
void NormalizePixelFormat(GLenum internalFormat, Flags<PixelFormatNormalizeOptionBit> options,
GLenum* outInternalFormat, GLenum* outFormat, GLenum* outType);
} // namespace MobileGL::MG_Util::TextureFormatProcessor
namespace MG_Util::TextureFormatProcessor {
void NormalizePixelFormat(GLenum internalFormat, Flags<PixelFormatNormalizeOptionBit> options,
GLenum* outInternalFormat, GLenum* outFormat, GLenum* outType);
}
} // namespace MobileGL