浏览代码

Typecast EGL types to get rid of compile warnings

Jari Vetoniemi 12 年之前
父节点
当前提交
5c54987285
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/egl_context.c

+ 2 - 2
src/egl_context.c

@@ -210,7 +210,7 @@ static GLboolean chooseFBConfigs(const _GLFWwndconfig* wndconfig,
 //
 //
 int _glfwInitContextAPI(void)
 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)
     if (_glfw.egl.display == EGL_NO_DISPLAY)
     {
     {
         _glfwInputError(GLFW_API_UNAVAILABLE,
         _glfwInputError(GLFW_API_UNAVAILABLE,
@@ -464,7 +464,7 @@ void _glfwPlatformMakeContextCurrent(_GLFWwindow* window)
         {
         {
             window->egl.surface = eglCreateWindowSurface(_glfw.egl.display,
             window->egl.surface = eglCreateWindowSurface(_glfw.egl.display,
                                                          window->egl.config,
                                                          window->egl.config,
-                                                         _GLFW_EGL_NATIVE_WINDOW,
+                                                         (EGLNativeWindowType)_GLFW_EGL_NATIVE_WINDOW,
                                                          NULL);
                                                          NULL);
             if (window->egl.surface == EGL_NO_SURFACE)
             if (window->egl.surface == EGL_NO_SURFACE)
             {
             {