mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
Fixes typo in EGL code (thanks jmcfarlane!)
This commit is contained in:
parent
2abe45e8cb
commit
ad20c801cb
@ -332,8 +332,8 @@ SDL_EGL_SetSwapInterval(_THIS, int interval)
|
|||||||
{
|
{
|
||||||
EGLBoolean status;
|
EGLBoolean status;
|
||||||
|
|
||||||
if (_this->egl_data) {
|
if (!_this->egl_data) {
|
||||||
return SDL_SetError("OpenGL ES context not active");
|
return SDL_SetError("EGL not initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
status = _this->egl_data->eglSwapInterval(_this->egl_data->egl_display, interval);
|
status = _this->egl_data->eglSwapInterval(_this->egl_data->egl_display, interval);
|
||||||
@ -348,8 +348,8 @@ SDL_EGL_SetSwapInterval(_THIS, int interval)
|
|||||||
int
|
int
|
||||||
SDL_EGL_GetSwapInterval(_THIS)
|
SDL_EGL_GetSwapInterval(_THIS)
|
||||||
{
|
{
|
||||||
if (_this->egl_data) {
|
if (!_this->egl_data) {
|
||||||
return SDL_SetError("OpenGL ES context not active");
|
return SDL_SetError("EGL not initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
return _this->egl_data->egl_swapinterval;
|
return _this->egl_data->egl_swapinterval;
|
||||||
|
Loading…
Reference in New Issue
Block a user