OSDN Git Service

Fixed binding offsets for uniform and transform feedback buffers
authorAlexis Hetu <sugoi@google.com>
Fri, 22 Jan 2016 22:28:28 +0000 (17:28 -0500)
committerAlexis Hétu <sugoi@google.com>
Thu, 4 Feb 2016 16:11:39 +0000 (16:11 +0000)
commit78696bf0242e02c847b899f4eed1506ebbd3ce41
treee3212922e2b078ffc4f86cdccd913e072b3b4cc2
parent150f597ae6113ed0c5639376a459abaeebecf58b
Fixed binding offsets for uniform and transform feedback buffers

There was some confusion between buffer mapping and size and offset
buffer binding arguments, which are distinct, but were represented
by the same Buffer class members. Added OffsetBindingPointer to solve
the issue and removed setOffset/setSize from the Buffer class, which
should not have existed in the first place (only the mapRange/unmap
functions should be allowed to modify these values, for now).

Change-Id: Iacecd17cfb90d0a229d9edf62a463c8acf31f07a
Reviewed-on: https://swiftshader-review.googlesource.com/4590
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/common/Object.hpp
src/OpenGL/libGLESv2/Buffer.h
src/OpenGL/libGLESv2/Context.cpp
src/OpenGL/libGLESv2/Context.h
src/OpenGL/libGLESv2/Program.cpp
src/OpenGL/libGLESv2/Program.h
src/OpenGL/libGLESv2/TransformFeedback.cpp
src/OpenGL/libGLESv2/TransformFeedback.h