Skip to content

Commit

Permalink
Fix a depth texture read back issue.
Browse files Browse the repository at this point in the history
Fixes #2740
  • Loading branch information
pmuetschard committed Jun 6, 2019
1 parent cb616ce commit d7c37c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gapis/api/gles/read_framebuffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func postFBData(ctx context.Context,
if img, err = img.Convert(redFmt); err != nil {
return nil, err
}
depthFmt, err := getImageFormat(GLenum_GL_DEPTH_COMPONENT, ty)
depthFmt, err := getImageFormat(GLenum_GL_DEPTH_COMPONENT, t)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d7c37c9

Please sign in to comment.