diff --git a/MobileGL/MG_Impl/GLImpl/RenderState/GL_RenderState.cpp b/MobileGL/MG_Impl/GLImpl/RenderState/GL_RenderState.cpp index 97f3508a..3e65dfc5 100644 --- a/MobileGL/MG_Impl/GLImpl/RenderState/GL_RenderState.cpp +++ b/MobileGL/MG_Impl/GLImpl/RenderState/GL_RenderState.cpp @@ -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( diff --git a/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp b/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp index 5018f908..79c6a61e 100644 --- a/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp +++ b/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp @@ -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; diff --git a/MobileGL/MG_Util/Texture/PixelStoreProcessor.cpp b/MobileGL/MG_Util/Texture/PixelStoreProcessor.cpp index c8272fe5..acc61b17 100644 --- a/MobileGL/MG_Util/Texture/PixelStoreProcessor.cpp +++ b/MobileGL/MG_Util/Texture/PixelStoreProcessor.cpp @@ -107,6 +107,9 @@ namespace MobileGL::MG_Util::PixelStoreProcessor { const Int copyHeight = height; 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) { outSize = 0; return nullptr;