Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RPi: Patched to compile without OpenGL (thanks, Simon!), other cleanups.
Fixes Bugzilla #3003.
  • Loading branch information
icculus committed Jun 7, 2015
1 parent 5b2e7aa commit 8a85084
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/video/raspberry/SDL_rpivideo.c
Expand Up @@ -284,15 +284,14 @@ RPI_CreateWindow(_THIS, SDL_Window * window)
void
RPI_DestroyWindow(_THIS, SDL_Window * window)
{
SDL_WindowData *data;

if(window->driverdata) {
data = (SDL_WindowData *) window->driverdata;
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
if(data) {
#if SDL_VIDEO_OPENGL_EGL
if (data->egl_surface != EGL_NO_SURFACE) {
SDL_EGL_DestroySurface(_this, data->egl_surface);
data->egl_surface = EGL_NO_SURFACE;
}
SDL_free(window->driverdata);
#endif
SDL_free(data);
window->driverdata = NULL;
}
}
Expand Down

0 comments on commit 8a85084

Please sign in to comment.