mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Ensure color format is always set for GL pixel history framebuffers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user