diff options
author | Chia-Wu <[email protected]> | 2009-07-31 07:28:56 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-07-31 07:30:13 -0600 |
commit | dc516d6e2afe7f157dbe5aad1288e5624b27e093 (patch) | |
tree | bea322f3bd3eb06b866510cbe7441055e10ba157 /src/egl/main/eglconfig.c | |
parent | 826f1f9c6fd976ff36594e272c0a391187ca0bd8 (diff) |
egl: Silence warnings on x86-64.
Casting an unsigned int to or from a pointer directly gives warnings on
x86-64. Add wrappers to silence the warnings.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/egl/main/eglconfig.c')
-rw-r--r-- | src/egl/main/eglconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index f2f32585c73..bbc585b55e9 100644 --- a/src/egl/main/eglconfig.c +++ b/src/egl/main/eglconfig.c @@ -34,7 +34,7 @@ void _eglInitConfig(_EGLConfig *config, EGLint id) { memset(config, 0, sizeof(*config)); - config->Handle = (EGLConfig) id; + config->Handle = (EGLConfig) _eglUIntToPointer((unsigned int) id); _eglSetConfigAttrib(config, EGL_CONFIG_ID, id); _eglSetConfigAttrib(config, EGL_BIND_TO_TEXTURE_RGB, EGL_DONT_CARE); _eglSetConfigAttrib(config, EGL_BIND_TO_TEXTURE_RGBA, EGL_DONT_CARE); |