From 5c54987285d985d6021c19ff95fbee1604a8c868 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 17 Jun 2013 19:23:34 +0300 Subject: [PATCH] Typecast EGL types to get rid of compile warnings --- src/egl_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl_context.c b/src/egl_context.c index de58774f..8b30934a 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -210,7 +210,7 @@ static GLboolean chooseFBConfigs(const _GLFWwndconfig* wndconfig, // int _glfwInitContextAPI(void) { - _glfw.egl.display = eglGetDisplay(_GLFW_EGL_NATIVE_DISPLAY); + _glfw.egl.display = eglGetDisplay((EGLNativeDisplayType)_GLFW_EGL_NATIVE_DISPLAY); if (_glfw.egl.display == EGL_NO_DISPLAY) { _glfwInputError(GLFW_API_UNAVAILABLE, @@ -464,7 +464,7 @@ void _glfwPlatformMakeContextCurrent(_GLFWwindow* window) { window->egl.surface = eglCreateWindowSurface(_glfw.egl.display, window->egl.config, - _GLFW_EGL_NATIVE_WINDOW, + (EGLNativeWindowType)_GLFW_EGL_NATIVE_WINDOW, NULL); if (window->egl.surface == EGL_NO_SURFACE) {