diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-11-21 11:41:53 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-11-24 11:24:49 +0100 |
commit | 8639bbdc9d33555eaa40bbbad9ba53d346b489fd (patch) | |
tree | 4b3682b6025e4015e084e0e89d5596cf0168a998 /common | |
parent | a74209a9c37c12535c04fa27b300620aebbf0a46 (diff) | |
download | spice-common-8639bbdc9d33555eaa40bbbad9ba53d346b489fd.tar.gz spice-common-8639bbdc9d33555eaa40bbbad9ba53d346b489fd.tar.xz spice-common-8639bbdc9d33555eaa40bbbad9ba53d346b489fd.zip |
glc: Fix "warning: unused variable 'recreate'"
Diffstat (limited to 'common')
-rw-r--r-- | common/glc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/glc.c b/common/glc.c index c1795de..8fd8700 100644 --- a/common/glc.c +++ b/common/glc.c @@ -1260,7 +1260,6 @@ void glc_copy_pixels(GLCCtx glc, int x_dest, int y_dest, int x_src, int y_src, i int height) { InternaCtx *ctx = (InternaCtx *)glc; - int recreate = 0; spice_assert(ctx); #if 1 /* USE_COPY_PIXELS */ @@ -1275,6 +1274,7 @@ void glc_copy_pixels(GLCCtx glc, int x_dest, int y_dest, int x_src, int y_src, i glEnable(GL_TEXTURE_2D); } #else + int recreate = 0; int width2 = gl_get_to_power_two(width); int height2 = gl_get_to_power_two(height); |