Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32opengl.c @ 3565:f43c8f688f77
Fixed bug #906
Added better error reporting for OpenGL context creation failing.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 15 Dec 2009 08:11:06 +0000 |
parents | 7f684f249ec9 |
children | 7812d3e9564e |
comparison
equal
deleted
inserted
replaced
3564:d264d99576c1 | 3565:f43c8f688f77 |
---|---|
534 _this->gl_data->wglDeleteContext(temp_context); | 534 _this->gl_data->wglDeleteContext(temp_context); |
535 } | 535 } |
536 } | 536 } |
537 | 537 |
538 if (!context) { | 538 if (!context) { |
539 SDL_SetError("Could not create GL context"); | 539 WIN_SetError("Could not create GL context"); |
540 return NULL; | 540 return NULL; |
541 } | 541 } |
542 | 542 |
543 if (WIN_GL_MakeCurrent(_this, window, context) < 0) { | 543 if (WIN_GL_MakeCurrent(_this, window, context) < 0) { |
544 WIN_GL_DeleteContext(_this, context); | 544 WIN_GL_DeleteContext(_this, context); |