mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 14:18:31 +09:00
[Chore] (MG_Impl/Texture): more logs
This commit is contained in:
@@ -86,7 +86,7 @@ namespace MobileGL {
|
||||
}
|
||||
|
||||
void PixelStorei_State(GLenum pname, GLint param) {
|
||||
MGLOG_D("%s: %s, ...", __func__, MG_Util::ConvertGLEnumToString(pname).c_str());
|
||||
MGLOG_D("%s: %s = %d", __func__, MG_Util::ConvertGLEnumToString(pname).c_str(), param);
|
||||
PixelStoreParam pixelStoreParam = MG_Util::ConvertGLEnumToPixelStoreParam(pname);
|
||||
if (pixelStoreParam == PixelStoreParam::Unknown) {
|
||||
MG_State::pGLContext->RecordError(
|
||||
|
||||
@@ -61,7 +61,9 @@ namespace MobileGL {
|
||||
TexturePixelDataType texturePixelDataType = MG_Util::ConvertGLEnumToTexturePixelDataType(type);
|
||||
// TextureInternalFormat textureInternalFormat =
|
||||
// MG_Util::ConvertGLEnumToTextureInternalFormat(format);
|
||||
MGLOG_D("TexSubImage2D_State: (%d, %d), format = %s, pixels = %p", width, height,
|
||||
MGLOG_D("TexSubImage2D_State: target = %s, level = %d, (%d, %d), format = %s, pixels = %p",
|
||||
MG_Util::ConvertGLEnumToString(target).c_str(), level,
|
||||
width, height,
|
||||
MG_Util::ConvertTextureInputFormatToString(textureInputFormat).c_str(), pixels);
|
||||
// ===================== Error Checking ==============================
|
||||
if (!TextureImpl::ValidateTexturePixelDataType(texturePixelDataType)) return;
|
||||
|
||||
Reference in New Issue
Block a user