Skip to content
Permalink
Browse files

kmsdrm: Fixed compiling without OpenGL support.

  • Loading branch information
philippwiesemann committed Aug 4, 2017
1 parent 8aa147f commit 4723943bc3072ebda1c942d32b4fb35ab3e4fff5
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -138,6 +138,7 @@ KMSDRM_Create(int devindex)
device->SetWindowGrab = KMSDRM_SetWindowGrab;
device->DestroyWindow = KMSDRM_DestroyWindow;
device->GetWindowWMInfo = KMSDRM_GetWindowWMInfo;
#if SDL_VIDEO_OPENGL_EGL
device->GL_LoadLibrary = KMSDRM_GLES_LoadLibrary;
device->GL_GetProcAddress = KMSDRM_GLES_GetProcAddress;
device->GL_UnloadLibrary = KMSDRM_GLES_UnloadLibrary;
@@ -147,6 +148,7 @@ KMSDRM_Create(int devindex)
device->GL_GetSwapInterval = KMSDRM_GLES_GetSwapInterval;
device->GL_SwapWindow = KMSDRM_GLES_SwapWindow;
device->GL_DeleteContext = KMSDRM_GLES_DeleteContext;
#endif

device->PumpEvents = KMSDRM_PumpEvents;

@@ -477,7 +479,8 @@ KMSDRM_CreateWindow(_THIS, SDL_Window * window)
/* Allocate window internal data */
wdata = (SDL_WindowData *) SDL_calloc(1, sizeof(SDL_WindowData));
if (wdata == NULL) {
return SDL_OutOfMemory();
SDL_OutOfMemory();
goto error;
}

wdata->waiting_for_flip = SDL_FALSE;

0 comments on commit 4723943

Please sign in to comment.