mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix] (MG_State/Texture, MG_State/Framebuffer): add stub for glCopyTexSubImage2D, glDrawBuffer, glDrawBuffers and glReadBuffer
This commit is contained in:
@@ -582,4 +582,22 @@ namespace MG_GL::GL {
|
||||
MG_Diligent::g_pContext->CopyTexture(CopyAttribs);
|
||||
}
|
||||
}
|
||||
|
||||
void DrawBuffer(GLenum buf) {
|
||||
MG_Util::Debug::LogD("glDrawBuffer, buf: %s", MG_Util::Debug::GLEnumToString(buf));
|
||||
}
|
||||
|
||||
void DrawBuffers(GLsizei n, const GLenum *bufs) {
|
||||
MG_Util::Debug::LogD("glDrawBuffers, n: %d, bufs: [", n);
|
||||
for (int i = 0; i < n; ++i) {
|
||||
MG_Util::Debug::LogD("%s,", MG_Util::Debug::GLEnumToString(bufs[i]));
|
||||
}
|
||||
MG_Util::Debug::LogD("]");
|
||||
|
||||
}
|
||||
|
||||
void ReadBuffer(GLenum buf) {
|
||||
MG_Util::Debug::LogD("glReadBuffer, buf: %s", MG_Util::Debug::GLEnumToString(buf));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user