mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 21:31:36 +00:00
Ensure color format is always set for GL pixel history framebuffers
This commit is contained in:
1 file changed
+3
@@ -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