summaryrefslogtreecommitdiff
path: root/glamor/glamor_fbo.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-04-28 14:55:34 +0800
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:51 -0800
commit1035fc72b9017eb2466760133ca7bbc9155c8c46 (patch)
treeed2edc00ac0b4ac73c45119b9738515f1c9993e8 /glamor/glamor_fbo.c
parent33e11cd6149294060269ed693de67b135868e094 (diff)
Fixed all unused variables warnings.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor_fbo.c')
-rw-r--r--glamor/glamor_fbo.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c
index 9b8dcdf5e..d80771a14 100644
--- a/glamor/glamor_fbo.c
+++ b/glamor/glamor_fbo.c
@@ -98,7 +98,6 @@ glamor_pixmap_fbo_cache_get(glamor_screen_private *glamor_priv,
{
struct xorg_list *cache;
glamor_pixmap_fbo *fbo_entry, *ret_fbo = NULL;
- int size;
int n_format;
#ifdef NO_FBO_CACHE
return NULL;
@@ -436,7 +435,7 @@ _glamor_create_tex(glamor_screen_private *glamor_priv,
int w, int h, GLenum format)
{
glamor_gl_dispatch *dispatch;
- int tex;
+ unsigned int tex;
dispatch = glamor_get_dispatch(glamor_priv);
dispatch->glGenTextures(1, &tex);
@@ -451,15 +450,12 @@ _glamor_create_tex(glamor_screen_private *glamor_priv,
return tex;
}
-
-
glamor_pixmap_fbo *
glamor_create_fbo(glamor_screen_private *glamor_priv,
int w, int h,
GLenum format,
int flag)
{
- glamor_gl_dispatch *dispatch;
glamor_pixmap_fbo *fbo;
GLint tex = 0;
int cache_flag;