OSDN Git Service

Fix using linear layout for depth readback.
authorNicolas Capens <capn@google.com>
Fri, 22 Dec 2017 19:57:05 +0000 (14:57 -0500)
committerNicolas Capens <nicolascapens@google.com>
Wed, 3 Jan 2018 14:08:56 +0000 (14:08 +0000)
commit4a4fe77cb1ce0c98170bd62924d4952eab3dbc60
tree7240b56b98031820782139046e97666f2664d433
parent2cd0009006cce1070636adc495c3f55214dc6d6a
Fix using linear layout for depth readback.

We were using a quad-layout depth format as the destination format for
glReadPixels calls with GL_DEPTH_COMPONENT / GL_FLOAT format. Upload to
a texture was also affected.

Bug b/64542192

Change-Id: I8ad700bf86737debe3268ec6a3dbd237cd85ea1a
Reviewed-on: https://swiftshader-review.googlesource.com/15548
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/common/Image.cpp