Commit 29faf67e by Nicolas Capens

Remove unused return value.

Change-Id: I99731b6697a4ae92b1d04c8a8d895a0cf19d580c Reviewed-on: https://swiftshader-review.googlesource.com/4545Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 70589080
......@@ -951,7 +951,7 @@ GLuint Context::createVertexArray()
{
GLuint handle = mVertexArrayNameSpace.allocate();
mVertexArrayMap[handle] = NULL;
mVertexArrayMap[handle] = nullptr;
return handle;
}
......@@ -1268,9 +1268,9 @@ void Context::bindRenderbuffer(GLuint renderbuffer)
mState.renderbuffer = getRenderbuffer(renderbuffer);
}
bool Context::bindVertexArray(GLuint array)
void Context::bindVertexArray(GLuint array)
{
VertexArray* vertexArray = getVertexArray(array);
VertexArray *vertexArray = getVertexArray(array);
if(!vertexArray)
{
......@@ -1279,8 +1279,6 @@ bool Context::bindVertexArray(GLuint array)
}
mState.vertexArray = array;
return !!vertexArray;
}
void Context::bindGenericUniformBuffer(GLuint buffer)
......@@ -1540,7 +1538,7 @@ VertexArray *Context::getVertexArray(GLuint array) const
{
VertexArrayMap::const_iterator vertexArray = mVertexArrayMap.find(array);
return (vertexArray == mVertexArrayMap.end()) ? NULL : vertexArray->second;
return (vertexArray == mVertexArrayMap.end()) ? nullptr : vertexArray->second;
}
VertexArray *Context::getCurrentVertexArray() const
......
......@@ -571,7 +571,7 @@ public:
void bindReadFramebuffer(GLuint framebuffer);
void bindDrawFramebuffer(GLuint framebuffer);
void bindRenderbuffer(GLuint renderbuffer);
bool bindVertexArray(GLuint array);
void bindVertexArray(GLuint array);
void bindGenericUniformBuffer(GLuint buffer);
void bindIndexedUniformBuffer(GLuint buffer, GLuint index, GLintptr offset, GLsizeiptr size);
void bindGenericTransformFeedbackBuffer(GLuint buffer);
......
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