src/video/windows/SDL_windowsopengles.c
changeset 8908 8333acde0b91
parent 8273 bdfea8962bcf
child 9619 b94b6d0bff0f
equal deleted inserted replaced
8907:e4c67eb79af8 8908:8333acde0b91
    62 WIN_GLES_CreateContext(_THIS, SDL_Window * window)
    62 WIN_GLES_CreateContext(_THIS, SDL_Window * window)
    63 {
    63 {
    64     SDL_GLContext context;
    64     SDL_GLContext context;
    65     SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
    65     SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
    66 
    66 
       
    67 #if SDL_VIDEO_OPENGL_WGL
    67     if (_this->gl_config.profile_mask != SDL_GL_CONTEXT_PROFILE_ES) {
    68     if (_this->gl_config.profile_mask != SDL_GL_CONTEXT_PROFILE_ES) {
    68         /* Switch to WGL based functions */
    69         /* Switch to WGL based functions */
    69         WIN_GLES_UnloadLibrary(_this);
    70         WIN_GLES_UnloadLibrary(_this);
    70         _this->GL_LoadLibrary = WIN_GL_LoadLibrary;
    71         _this->GL_LoadLibrary = WIN_GL_LoadLibrary;
    71         _this->GL_GetProcAddress = WIN_GL_GetProcAddress;
    72         _this->GL_GetProcAddress = WIN_GL_GetProcAddress;
    81             return NULL;
    82             return NULL;
    82         }
    83         }
    83 
    84 
    84         return WIN_GL_CreateContext(_this, window);
    85         return WIN_GL_CreateContext(_this, window);
    85     }
    86     }
       
    87 #endif
    86 
    88 
    87     context = SDL_EGL_CreateContext(_this, data->egl_surface);
    89     context = SDL_EGL_CreateContext(_this, data->egl_surface);
    88     return context;
    90     return context;
    89 }
    91 }
    90 
    92