[Mesa-dev] [PATCH] glx: change query_renderer_integer() value param to unsigned
Brian Paul
brian.e.paul at gmail.com
Fri Nov 8 08:01:21 PST 2013
From: Brian Paul <brianp at vmware.com>
Not sure if this is supposed to be signed or unsigned. It's not
consistent as-is.
---
src/glx/glxclient.h | 2 +-
src/glx/query_renderer.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h
index e26a83e..e33dba6 100644
--- a/src/glx/glxclient.h
+++ b/src/glx/glxclient.h
@@ -477,7 +477,7 @@ struct glx_screen_vtable {
unsigned *error);
int (*query_renderer_integer)(struct glx_screen *psc,
int attribute,
- int *value);
+ unsigned int *value);
int (*query_renderer_string)(struct glx_screen *psc,
int attribute,
const char **value);
diff --git a/src/glx/query_renderer.c b/src/glx/query_renderer.c
index 981a844..9108ec2 100644
--- a/src/glx/query_renderer.c
+++ b/src/glx/query_renderer.c
@@ -30,7 +30,7 @@ __glXQueryRendererInteger(struct glx_screen *psc, int attribute,
unsigned int *value)
{
unsigned int values_for_query = 0;
- int buffer[32];
+ unsigned int buffer[32];
int err;
/* This probably means the caller is trying to use an extension function
--
1.7.9.5
More information about the mesa-dev
mailing list