[Mesa-dev] [PATCH] dri_util: make version var unsigned to silence warnings
Brian Paul
brianp at vmware.com
Fri May 29 10:38:38 PDT 2015
_mesa_override_gl_version_contextless() takes an unsigned version
parameter.
---
src/mesa/drivers/dri/common/dri_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 2d847ef..66f9eaa 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -164,7 +164,7 @@ driCreateNewScreen2(int scrn, int fd,
struct gl_constants consts = { 0 };
gl_api api;
- int version;
+ unsigned int version;
api = API_OPENGLES2;
if (_mesa_override_gl_version_contextless(&consts, &api, &version))
--
1.9.1
More information about the mesa-dev
mailing list