|
@@ -299,7 +299,7 @@ e.g.
|
|
|
|
|
|
|
|
You have access to the OpenGL context or rendering API at this point.
|
|
You have access to the OpenGL context or rendering API at this point.
|
|
|
However, there's a chance (on older hardware, or on systems under heavy load),
|
|
However, there's a chance (on older hardware, or on systems under heavy load),
|
|
|
- where the graphics context can not be restored. You should listen for the
|
|
|
|
|
|
|
+ where the graphics context cannot be restored. You should listen for the
|
|
|
event SDL_EVENT_RENDER_DEVICE_RESET and recreate your OpenGL context and
|
|
event SDL_EVENT_RENDER_DEVICE_RESET and recreate your OpenGL context and
|
|
|
restore your textures when you get it, or quit the app.
|
|
restore your textures when you get it, or quit the app.
|
|
|
*/
|
|
*/
|
|
@@ -358,7 +358,7 @@ To enable/disable this behavior, see SDL_hints.h:
|
|
|
Misc
|
|
Misc
|
|
|
================================================================================
|
|
================================================================================
|
|
|
|
|
|
|
|
-For some device, it appears to works better setting explicitly GL attributes
|
|
|
|
|
|
|
+For some devices, it appears to work better setting explicitly GL attributes
|
|
|
before creating a window:
|
|
before creating a window:
|
|
|
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
|
|
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
|
|
|
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);
|
|
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);
|