OSDN Git Service

Removed useless memcpy operations
authorAlexis Hetu <sugoi@google.com>
Mon, 4 May 2015 19:59:52 +0000 (15:59 -0400)
committerAlexis Hétu <sugoi@google.com>
Tue, 5 May 2015 12:45:45 +0000 (12:45 +0000)
commit03e91f29d637f341a061d19f2d03d869032e8efc
tree4a87c425e7d54db528fcd5a049c89a04af9c75fb
parent52114cc56a924fc8ec9ff9ad3ebcde1d1a14ecc4
Removed useless memcpy operations

Loading RGBA8 was apparently copying each
line "width" times, which is pretty bad.
Fixed that by removing the useless loop.

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