diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-10-06 09:14:57 +0000 |
---|---|---|
committer | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-10-06 09:14:57 +0000 |
commit | 4a2f6ed7f834c2935a73f3eef6cd7e36a0da980a (patch) | |
tree | 5da919c48af2291c6bbaba1c3605c486b34dc38c | |
parent | 9af97d42f3c3823be042a6af0bf5d21e85bc6a03 (diff) |
Drop obsolete GLBlendState related functions.
-rw-r--r-- | src/utils_glx.c | 48 | ||||
-rw-r--r-- | src/utils_glx.h | 15 |
2 files changed, 0 insertions, 63 deletions
diff --git a/src/utils_glx.c b/src/utils_glx.c index 9521246..4821b60 100644 --- a/src/utils_glx.c +++ b/src/utils_glx.c @@ -484,54 +484,6 @@ gl_swap_buffers(GLContextState *cs) } /** - * gl_push_blend_state: - * @bs: a #GLBlendState - * - * Saves current blend function, if GL_BLEND is enabled. - * - * Return value: 1 on success - */ -int -gl_push_blend_state(GLBlendState *bs) -{ - if (!bs) - return 0; - - bs->was_enabled = glIsEnabled(GL_BLEND); - if (bs->was_enabled) { - if (!gl_get_param(GL_BLEND_SRC, &bs->src_func)) - return 0; - if (!gl_get_param(GL_BLEND_DST, &bs->dst_func)) - return 0; - } - return 1; -} - -/** - * gl_push_blend_state: - * @bs: a #GLBlendState - * - * Restores blend function, if GL_BLEND was enabled when @bs was - * previously initialized through gl_push_blend_state(). - * - * Return value: 1 on success - */ -int -gl_pop_blend_state(GLBlendState *bs) -{ - if (!bs) - return 0; - - if (!bs->was_enabled) - glDisable(GL_BLEND); - else { - glEnable(GL_BLEND); - glBlendFunc(bs->src_func, bs->dst_func); - } - return 1; -} - -/** * gl_bind_texture: * @ts: a #GLTextureState * @target: the target to which the texture is bound diff --git a/src/utils_glx.h b/src/utils_glx.h index 0d4e94a..18d15b6 100644 --- a/src/utils_glx.h +++ b/src/utils_glx.h @@ -128,21 +128,6 @@ void gl_swap_buffers(GLContextState *cs) attribute_hidden; -typedef struct _GLBlendState GLBlendState; -struct _GLBlendState { - unsigned int src_func; - unsigned int dst_func; - unsigned int was_enabled : 1; -}; - -int -gl_push_blend_state(GLBlendState *bs) - attribute_hidden; - -int -gl_pop_blend_state(GLBlendState *bs) - attribute_hidden; - typedef struct _GLTextureState GLTextureState; struct _GLTextureState { GLenum target; |