File diff r24917:32c68f7840b0 → r24918:e55bb9103b0b
src/video/sdl2_opengl_v.cpp
Show inline comments
 
@@ -47,18 +47,18 @@ static OGLProc GetOGLProcAddressCallback
 
{
 
	return reinterpret_cast<OGLProc>(SDL_GL_GetProcAddress(proc));
 
}
 

	
 
bool VideoDriver_SDL_OpenGL::CreateMainWindow(uint w, uint h, uint flags)
 
{
 
	return this->VideoDriver_SDL::CreateMainWindow(w, h, SDL_WINDOW_OPENGL);
 
	return this->VideoDriver_SDL_Base::CreateMainWindow(w, h, SDL_WINDOW_OPENGL);
 
}
 

	
 
const char *VideoDriver_SDL_OpenGL::Start(const StringList &param)
 
{
 
	const char *error = VideoDriver_SDL::Start(param);
 
	const char *error = VideoDriver_SDL_Base::Start(param);
 
	if (error != nullptr) return error;
 

	
 
	error = this->AllocateContext();
 
	if (error != nullptr) {
 
		this->Stop();
 
		return error;
 
@@ -76,13 +76,13 @@ const char *VideoDriver_SDL_OpenGL::Star
 
	return nullptr;
 
}
 

	
 
void VideoDriver_SDL_OpenGL::Stop()
 
{
 
	this->DestroyContext();
 
	this->VideoDriver_SDL::Stop();
 
	this->VideoDriver_SDL_Base::Stop();
 
}
 

	
 
void VideoDriver_SDL_OpenGL::DestroyContext()
 
{
 
	OpenGLBackend::Destroy();