summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/gles2_implementation_autogen.h
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-08 00:14:32 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-08 00:14:32 +0000
commitdab74db3eac9336a5678ba146bfc9e8ae4aad338 (patch)
treec4203f61f643066526f29220e4f6c6f46c335aa9 /gpu/command_buffer/client/gles2_implementation_autogen.h
parente55badb64f610fa03504471ca8edd997a9d3f1b4 (diff)
downloadchromium_src-dab74db3eac9336a5678ba146bfc9e8ae4aad338.zip
chromium_src-dab74db3eac9336a5678ba146bfc9e8ae4aad338.tar.gz
chromium_src-dab74db3eac9336a5678ba146bfc9e8ae4aad338.tar.bz2
Revert gpu CL which broke the Mac build.
Reverting change by gman@chromium.org, Fri 07 May 2010 16:35:41, r46756, original comment: This CL adds the option to support buffers that are bound to more than one target. <snip> original review URL: http://codereview.chromium.org/1992008 TBR=gman@chromium.org BUG=none TEST=Mac waterfall green Review URL: http://codereview.chromium.org/1988007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation_autogen.h')
-rw-r--r--gpu/command_buffer/client/gles2_implementation_autogen.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation_autogen.h b/gpu/command_buffer/client/gles2_implementation_autogen.h
index ae826d8..63d0b53 100644
--- a/gpu/command_buffer/client/gles2_implementation_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_autogen.h
@@ -167,10 +167,6 @@ void CullFace(GLenum mode) {
}
void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
- if (n < 0) {
- SetGLError(GL_INVALID_VALUE, "glDeleteFramebuffers: n < 0");
- return;
- }
framebuffer_id_handler_->FreeIds(n, framebuffers);
helper_->DeleteFramebuffersImmediate(n, framebuffers);
}
@@ -181,10 +177,6 @@ void DeleteProgram(GLuint program) {
}
void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) {
- if (n < 0) {
- SetGLError(GL_INVALID_VALUE, "glDeleteRenderbuffers: n < 0");
- return;
- }
renderbuffer_id_handler_->FreeIds(n, renderbuffers);
helper_->DeleteRenderbuffersImmediate(n, renderbuffers);
}
@@ -195,10 +187,6 @@ void DeleteShader(GLuint shader) {
}
void DeleteTextures(GLsizei n, const GLuint* textures) {
- if (n < 0) {
- SetGLError(GL_INVALID_VALUE, "glDeleteTextures: n < 0");
- return;
- }
texture_id_handler_->FreeIds(n, textures);
helper_->DeleteTexturesImmediate(n, textures);
}
@@ -252,10 +240,6 @@ void FrontFace(GLenum mode) {
}
void GenBuffers(GLsizei n, GLuint* buffers) {
- if (n < 0) {
- SetGLError(GL_INVALID_VALUE, "glGenBuffers: n < 0");
- return;
- }
buffer_id_handler_->MakeIds(0, n, buffers);
helper_->GenBuffersImmediate(n, buffers);
}
@@ -265,28 +249,16 @@ void GenerateMipmap(GLenum target) {
}
void GenFramebuffers(GLsizei n, GLuint* framebuffers) {
- if (n < 0) {
- SetGLError(GL_INVALID_VALUE, "glGenFramebuffers: n < 0");
- return;
- }
framebuffer_id_handler_->MakeIds(0, n, framebuffers);
helper_->GenFramebuffersImmediate(n, framebuffers);
}
void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
- if (n < 0) {
- SetGLError(GL_INVALID_VALUE, "glGenRenderbuffers: n < 0");
- return;
- }
renderbuffer_id_handler_->MakeIds(0, n, renderbuffers);
helper_->GenRenderbuffersImmediate(n, renderbuffers);
}
void GenTextures(GLsizei n, GLuint* textures) {
- if (n < 0) {
- SetGLError(GL_INVALID_VALUE, "glGenTextures: n < 0");
- return;
- }
texture_id_handler_->MakeIds(0, n, textures);
helper_->GenTexturesImmediate(n, textures);
}
@@ -790,9 +762,5 @@ void DeleteSharedIds(GLuint namespace_id, GLsizei n, const GLuint* ids);
void RegisterSharedIds(GLuint namespace_id, GLsizei n, const GLuint* ids);
-void CommandBufferEnable(GLenum cap, GLboolean enable) {
- helper_->CommandBufferEnable(cap, enable);
-}
-
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_