diff options
author | Brian Paul <[email protected]> | 2011-11-18 17:39:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-11-19 07:28:07 -0700 |
commit | 2efa3d4f9fd1e1683c5366d402d8740ecfb688e5 (patch) | |
tree | bb164b00ada68c6af90f8f536c548670acb9a23b /src/mesa/main/fbobject.c | |
parent | a43908fe62c39b84f014ddf2bee15cd07a77fc0d (diff) |
mesa: define, use _mesa_is_cube_face() in several places
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | src/mesa/main/fbobject.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index f8b148cee8b..5b329f5c3e5 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -78,14 +78,6 @@ static struct gl_renderbuffer DummyRenderbuffer; static struct gl_framebuffer IncompleteFramebuffer; -static inline GLboolean -is_cube_face(GLenum target) -{ - return (target >= GL_TEXTURE_CUBE_MAP_POSITIVE_X && - target <= GL_TEXTURE_CUBE_MAP_NEGATIVE_Z); -} - - /** * Is the given FBO a user-created FBO? */ @@ -2008,7 +2000,7 @@ framebuffer_texture(struct gl_context *ctx, const char *caller, GLenum target, } else { err = (texObj->Target == GL_TEXTURE_CUBE_MAP) - ? !is_cube_face(textarget) + ? !_mesa_is_cube_face(textarget) : (texObj->Target != textarget); } } |