mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Fix the read back for remapped depth texture
This commit is contained in:
committed by
Baldur Karlsson
parent
196ca9bae2
commit
bee232f40c
@@ -3322,6 +3322,9 @@ void APIENTRY _glGetTexImage(GLenum target, GLint level, const GLenum format, co
|
||||
level = 0;
|
||||
readFormat = remapformat;
|
||||
readType = remaptype;
|
||||
// always reset depthFormat. If the target format is depth, it was remapped
|
||||
// and read-back will happen on remapped texture.
|
||||
depthFormat = false;
|
||||
|
||||
attachment = eGL_COLOR_ATTACHMENT0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user