OSDN Git Service

Pixel unpack buffer validation follow up
authorAlexis Hetu <sugoi@google.com>
Fri, 17 Nov 2017 18:15:32 +0000 (13:15 -0500)
committerAlexis Hétu <sugoi@google.com>
Fri, 17 Nov 2017 18:52:18 +0000 (18:52 +0000)
commit848aa7fc4f1c71e3d5bdb896c249461d495b248d
tree8f5c88068237e9b275239a6e0376504675a239e3
parentb14752c2cab6007619411741a440fb5b15283f34
Pixel unpack buffer validation follow up

2 fixes:
- The offset check was removed, as it only affects the pointer
  and not the size
- The modulo check is on the type only and not the entire image size

Change-Id: I8c4b64e845b2fae61959d7c62d2c5dc222249c68
Reviewed-on: https://swiftshader-review.googlesource.com/14009
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/libGLESv2/Context.cpp
src/OpenGL/libGLESv2/Context.h
src/OpenGL/libGLESv2/libGLESv2.cpp
src/OpenGL/libGLESv2/libGLESv3.cpp
src/OpenGL/libGLESv2/utilities.cpp
src/OpenGL/libGLESv2/utilities.h