X11: Fixed typos in error messages and source comments.
1.1 --- a/src/video/x11/SDL_x11opengl.c Fri May 20 22:14:40 2016 +0200
1.2 +++ b/src/video/x11/SDL_x11opengl.c Fri May 20 22:15:28 2016 +0200
1.3 @@ -695,7 +695,7 @@
1.4
1.5 if (errorCode != Success) { /* uhoh, an X error was thrown! */
1.6 return -1; /* the error handler called SDL_SetError() already. */
1.7 - } else if (!rc) { /* glxMakeCurrent() failed without throwing an X error */
1.8 + } else if (!rc) { /* glXMakeCurrent() failed without throwing an X error */
1.9 return SDL_SetError("Unable to make GL context current");
1.10 }
1.11
1.12 @@ -703,10 +703,10 @@
1.13 }
1.14
1.15 /*
1.16 - 0 is a valid argument to glxSwapInterval(MESA|EXT) and setting it to 0
1.17 + 0 is a valid argument to glXSwapInterval(MESA|EXT) and setting it to 0
1.18 will undo the effect of a previous call with a value that is greater
1.19 than zero (or at least that is what the docs say). OTOH, 0 is an invalid
1.20 - argument to glxSwapIntervalSGI and it returns an error if you call it
1.21 + argument to glXSwapIntervalSGI and it returns an error if you call it
1.22 with 0 as an argument.
1.23 */
1.24
1.25 @@ -742,14 +742,14 @@
1.26 } else if (_this->gl_data->glXSwapIntervalMESA) {
1.27 status = _this->gl_data->glXSwapIntervalMESA(interval);
1.28 if (status != 0) {
1.29 - SDL_SetError("glxSwapIntervalMESA failed");
1.30 + SDL_SetError("glXSwapIntervalMESA failed");
1.31 } else {
1.32 swapinterval = interval;
1.33 }
1.34 } else if (_this->gl_data->glXSwapIntervalSGI) {
1.35 status = _this->gl_data->glXSwapIntervalSGI(interval);
1.36 if (status != 0) {
1.37 - SDL_SetError("glxSwapIntervalSGI failed");
1.38 + SDL_SetError("glXSwapIntervalSGI failed");
1.39 } else {
1.40 swapinterval = interval;
1.41 }