From 98a8a3a5e99dd27a4c8f7fa2c11217c113dc7791 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 6 Nov 2025 00:02:02 +0800 Subject: [PATCH] [Chore] (GLImpl/GL_Buffer): add some log --- MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp b/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp index 5c357b85..6079266e 100644 --- a/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp +++ b/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp @@ -1,5 +1,6 @@ #include "GL_Buffer.h" #include "Validators.h" +#include "MG_Util/Converters/GLToStr/GLEnumConverter.h" #include #include #include @@ -433,6 +434,8 @@ namespace MobileGL { } void BufferData_State(GLenum target, GLsizeiptr size, const void* data, GLenum usage) { + MGLOG_D("%s: %s, size = %d, data = %p, usage = %s", + __func__, MG_Util::ConvertGLEnumToString(target).c_str(), size, data, MG_Util::ConvertGLEnumToString(usage).c_str()); if (size < 0) { MG_State::pGLContext->RecordError( ErrorCode::InvalidValue, @@ -476,6 +479,7 @@ namespace MobileGL { auto& bindingSlot = MG_State::pGLContext->GetBufferBindingSlot(bufferTarget); bindingSlot.Bind(bufferObject); + MGLOG_D("%s: bind buffer object %p -> %s", __func__, bufferObject.get(), MG_Util::ConvertGLEnumToString(target).c_str()); } void GenBuffers_State(GLsizei n, GLuint* buffers) {