src/video/android/SDL_androidwindow.c
changeset 12497 9e13f3286831
parent 12496 93771c30420b
child 12498 c2e223dc5da9
equal deleted inserted replaced
12496:93771c30420b 12497:9e13f3286831
    90         data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->native_window);
    90         data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->native_window);
    91 
    91 
    92         if (data->egl_surface == EGL_NO_SURFACE) {
    92         if (data->egl_surface == EGL_NO_SURFACE) {
    93             ANativeWindow_release(data->native_window);
    93             ANativeWindow_release(data->native_window);
    94             SDL_free(data);
    94             SDL_free(data);
    95             retval = SDL_SetError("Could not create GLES window surface");
    95             retval = -1;
    96             goto endfunction;
    96             goto endfunction;
    97         }
    97         }
    98     }
    98     }
    99 
    99 
   100     window->driverdata = data;
   100     window->driverdata = data;