1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Typecast EGL types to get rid of compile warnings

This commit is contained in:
Jari Vetoniemi 2013-06-17 19:23:34 +03:00
parent c10bf9ba9c
commit 5c54987285

View File

@ -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)
{