Make the sentinel value for glBindBufferBase whole-buffer binding zero instead…

Make the sentinel value for glBindBufferBase whole-buffer binding zero instead of -1, to harmonize with the spec. TRAC #22852 Signed-off-by: Geoff Lang Signed-off-by: Nicolas Capens Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2284 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 37b8a91a
......@@ -67,13 +67,13 @@ template <class ObjectType>
class OffsetBindingPointer : public RefCountObjectBindingPointer
{
public:
OffsetBindingPointer() : mOffset(0), mSize(-1) { }
OffsetBindingPointer() : mOffset(0), mSize(0) { }
void set(ObjectType *newObject)
{
RefCountObjectBindingPointer::set(newObject);
mOffset = 0;
mSize = -1;
mSize = 0;
}
void set(ObjectType *newObject, GLintptr offset, GLsizeiptr size)
......
......@@ -8737,12 +8737,12 @@ void __stdcall glBindBufferBase(GLenum target, GLuint index, GLuint buffer)
switch (target)
{
case GL_TRANSFORM_FEEDBACK_BUFFER:
context->bindIndexedTransformFeedbackBuffer(buffer, index, 0, -1);
context->bindIndexedTransformFeedbackBuffer(buffer, index, 0, 0);
context->bindGenericTransformFeedbackBuffer(buffer);
break;
case GL_UNIFORM_BUFFER:
context->bindIndexedUniformBuffer(buffer, index, 0, -1);
context->bindIndexedUniformBuffer(buffer, index, 0, 0);
context->bindGenericUniformBuffer(buffer);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment