Ensure color format is always set for GL pixel history framebuffers

This commit is contained in:
baldurk
2025-04-29 12:09:51 +01:00
parent 8e86f79c72
commit 36e53ae0cd
+3
View File
@@ -166,6 +166,9 @@ const CopyFramebuffer &getCopyFramebuffer(WrappedOpenGL *driver,
GLuint curStencil;
GLint stencilType;
if(colorFormat == eGL_NONE)
colorFormat = eGL_RGBA8;
driver->glGetFramebufferAttachmentParameteriv(eGL_DRAW_FRAMEBUFFER, eGL_DEPTH_ATTACHMENT,
eGL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,
(GLint *)&curDepth);