[Mesa-dev] [PATCH] mesa: remove erroneous check for API_OPENGL_CORE in _mesa_TexBuffer
Christoph Bumiller
e0425955 at student.tuwien.ac.at
Mon Jan 28 14:01:29 PST 2013
From: Christoph Bumiller <christoph.bumiller at speed.at>
Only the test of the extension enable should be relevant.
---
src/mesa/main/teximage.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 31a559e..5a27797 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -4005,8 +4005,7 @@ _mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer)
GET_CURRENT_CONTEXT(ctx);
FLUSH_VERTICES(ctx, 0);
- if (!(ctx->API == API_OPENGL_CORE &&
- ctx->Extensions.ARB_texture_buffer_object)) {
+ if (!ctx->Extensions.ARB_texture_buffer_object) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glTexBuffer");
return;
}
--
1.7.3.4
More information about the mesa-dev
mailing list