mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58: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) {
|
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);
|
PixelStoreParam pixelStoreParam = MG_Util::ConvertGLEnumToPixelStoreParam(pname);
|
||||||
if (pixelStoreParam == PixelStoreParam::Unknown) {
|
if (pixelStoreParam == PixelStoreParam::Unknown) {
|
||||||
MG_State::pGLContext->RecordError(
|
MG_State::pGLContext->RecordError(
|
||||||
|
|||||||
@@ -61,7 +61,9 @@ namespace MobileGL {
|
|||||||
TexturePixelDataType texturePixelDataType = MG_Util::ConvertGLEnumToTexturePixelDataType(type);
|
TexturePixelDataType texturePixelDataType = MG_Util::ConvertGLEnumToTexturePixelDataType(type);
|
||||||
// TextureInternalFormat textureInternalFormat =
|
// TextureInternalFormat textureInternalFormat =
|
||||||
// MG_Util::ConvertGLEnumToTextureInternalFormat(format);
|
// 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);
|
MG_Util::ConvertTextureInputFormatToString(textureInputFormat).c_str(), pixels);
|
||||||
// ===================== Error Checking ==============================
|
// ===================== Error Checking ==============================
|
||||||
if (!TextureImpl::ValidateTexturePixelDataType(texturePixelDataType)) return;
|
if (!TextureImpl::ValidateTexturePixelDataType(texturePixelDataType)) return;
|
||||||
|
|||||||
@@ -107,6 +107,9 @@ namespace MobileGL::MG_Util::PixelStoreProcessor {
|
|||||||
const Int copyHeight = height;
|
const Int copyHeight = height;
|
||||||
const Int copyDepth = depth;
|
const Int copyDepth = depth;
|
||||||
|
|
||||||
|
MGLOG_D("%s: start at: (%d, %d, %d), copy size: (%d, %d, %d)", __func__,
|
||||||
|
startX, startY, startZ, copyWidth, copyHeight, copyDepth);
|
||||||
|
|
||||||
if (copyWidth <= 0 || copyHeight <= 0 || copyDepth <= 0) {
|
if (copyWidth <= 0 || copyHeight <= 0 || copyDepth <= 0) {
|
||||||
outSize = 0;
|
outSize = 0;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user