OSDN Git Service

Fix the source buffer used by CopyTex[Sub]Image.
authorNicolas Capens <capn@google.com>
Tue, 6 Feb 2018 19:44:47 +0000 (14:44 -0500)
committerNicolas Capens <nicolascapens@google.com>
Wed, 7 Feb 2018 14:41:25 +0000 (14:41 +0000)
commit1529c2cebcea665779db08a3967c3113666f630f
treec7313c626a33b47df7a0abfd57acf2052eaebd05
parent3c1d6cf226aa633df7d3388d6f7a26f5bb68ac64
Fix the source buffer used by CopyTex[Sub]Image.

We were passing the framebuffer to the texture's copying method, where
the first render target was used, instead of the read buffer.

Change-Id: I344b4082f675b7e5fc6a73af31a6764ab4d3b6a3
Reviewed-on: https://swiftshader-review.googlesource.com/17049
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/libGLESv2/Texture.cpp
src/OpenGL/libGLESv2/Texture.h
src/OpenGL/libGLESv2/libGLESv2.cpp
src/OpenGL/libGLESv2/libGLESv3.cpp