mirror of https://github.com/encounter/SDL.git
egl: make an int into an SDL_bool.
This commit is contained in:
parent
4ec259a784
commit
3147716022
|
@ -546,7 +546,7 @@ SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_displa
|
||||||
/* Get the EGL version with a valid egl_display, for EGL <= 1.4 */
|
/* Get the EGL version with a valid egl_display, for EGL <= 1.4 */
|
||||||
SDL_EGL_GetVersion(_this);
|
SDL_EGL_GetVersion(_this);
|
||||||
|
|
||||||
_this->egl_data->is_offscreen = 0;
|
_this->egl_data->is_offscreen = SDL_FALSE;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -634,7 +634,7 @@ SDL_EGL_InitializeOffscreen(_THIS, int device)
|
||||||
/* Get the EGL version with a valid egl_display, for EGL <= 1.4 */
|
/* Get the EGL version with a valid egl_display, for EGL <= 1.4 */
|
||||||
SDL_EGL_GetVersion(_this);
|
SDL_EGL_GetVersion(_this);
|
||||||
|
|
||||||
_this->egl_data->is_offscreen = 1;
|
_this->egl_data->is_offscreen = SDL_TRUE;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,8 +117,7 @@ typedef struct SDL_EGL_VideoData
|
||||||
|
|
||||||
|
|
||||||
/* whether EGL display was offscreen */
|
/* whether EGL display was offscreen */
|
||||||
int is_offscreen;
|
SDL_bool is_offscreen;
|
||||||
|
|
||||||
} SDL_EGL_VideoData;
|
} SDL_EGL_VideoData;
|
||||||
|
|
||||||
/* OpenGLES functions */
|
/* OpenGLES functions */
|
||||||
|
|
Loading…
Reference in New Issue