diff options
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation_impl_autogen.h')
-rw-r--r-- | gpu/command_buffer/client/gles2_implementation_impl_autogen.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h index 4ce044e..8353e0e 100644 --- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h +++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h @@ -24,9 +24,8 @@ void GLES2Implementation::BindBuffer(GLenum target, GLuint buffer) { SetGLError(GL_INVALID_OPERATION, "BindBuffer", "buffer reserved id"); return; } - if (BindBufferHelper(target, buffer)) { - helper_->BindBuffer(target, buffer); - } + BindBufferHelper(target, buffer); + helper_->BindBuffer(target, buffer); } void GLES2Implementation::BindFramebuffer(GLenum target, GLuint framebuffer) { @@ -37,9 +36,8 @@ void GLES2Implementation::BindFramebuffer(GLenum target, GLuint framebuffer) { GL_INVALID_OPERATION, "BindFramebuffer", "framebuffer reserved id"); return; } - if (BindFramebufferHelper(target, framebuffer)) { - helper_->BindFramebuffer(target, framebuffer); - } + BindFramebufferHelper(target, framebuffer); + helper_->BindFramebuffer(target, framebuffer); } void GLES2Implementation::BindRenderbuffer( @@ -51,9 +49,8 @@ void GLES2Implementation::BindRenderbuffer( GL_INVALID_OPERATION, "BindRenderbuffer", "renderbuffer reserved id"); return; } - if (BindRenderbufferHelper(target, renderbuffer)) { - helper_->BindRenderbuffer(target, renderbuffer); - } + BindRenderbufferHelper(target, renderbuffer); + helper_->BindRenderbuffer(target, renderbuffer); } void GLES2Implementation::BindTexture(GLenum target, GLuint texture) { @@ -63,9 +60,8 @@ void GLES2Implementation::BindTexture(GLenum target, GLuint texture) { SetGLError(GL_INVALID_OPERATION, "BindTexture", "texture reserved id"); return; } - if (BindTextureHelper(target, texture)) { - helper_->BindTexture(target, texture); - } + BindTextureHelper(target, texture); + helper_->BindTexture(target, texture); } void GLES2Implementation::BlendColor( @@ -1196,6 +1192,12 @@ void GLES2Implementation::UniformMatrix4fv( helper_->UniformMatrix4fvImmediate(location, count, transpose, value); } +void GLES2Implementation::UseProgram(GLuint program) { + GPU_CLIENT_SINGLE_THREAD_CHECK(); + GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glUseProgram(" << program << ")"); + helper_->UseProgram(program); +} + void GLES2Implementation::ValidateProgram(GLuint program) { GPU_CLIENT_SINGLE_THREAD_CHECK(); GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glValidateProgram(" << program << ")"); // NOLINT @@ -1424,9 +1426,8 @@ void GLES2Implementation::BindVertexArrayOES(GLuint array) { GL_INVALID_OPERATION, "BindVertexArrayOES", "array reserved id"); return; } - if (BindVertexArrayHelper(array)) { - helper_->BindVertexArrayOES(array); - } + BindVertexArrayHelper(array); + helper_->BindVertexArrayOES(array); } void GLES2Implementation::GetTranslatedShaderSourceANGLE( |