# HG changeset patch # User Sam Lantinga # Date 1296982121 28800 # Node ID 25ffd4e5255c7b22e2f30b04101deb6b3e0c5201 # Parent 1f2b17f42fd0382264bd0c74a7fafa084e308588 Minor consistency cleanup and documentation link update. diff -r 1f2b17f42fd0 -r 25ffd4e5255c src/render/direct3d/SDL_render_d3d.c --- a/src/render/direct3d/SDL_render_d3d.c Sun Feb 06 00:48:16 2011 -0800 +++ b/src/render/direct3d/SDL_render_d3d.c Sun Feb 06 00:48:41 2011 -0800 @@ -116,7 +116,7 @@ D3D_CreateRenderer, { "direct3d", - (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED), + (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC), 1, {SDL_PIXELFORMAT_ARGB8888}, 0, diff -r 1f2b17f42fd0 -r 25ffd4e5255c src/render/opengl/SDL_render_gl.c --- a/src/render/opengl/SDL_render_gl.c Sun Feb 06 00:48:16 2011 -0800 +++ b/src/render/opengl/SDL_render_gl.c Sun Feb 06 00:48:41 2011 -0800 @@ -34,7 +34,7 @@ /* OpenGL renderer implementation */ /* Details on optimizing the texture path on Mac OS X: - http://developer.apple.com/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_texturedata/chapter_10_section_2.html + http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_texturedata/opengl_texturedata.html */ /* Used to re-create the window with OpenGL capability */ @@ -72,7 +72,7 @@ GL_CreateRenderer, { "opengl", - (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED), + (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC), 1, {SDL_PIXELFORMAT_ARGB8888}, 0, @@ -331,7 +331,6 @@ GLint* internalFormat, GLenum* format, GLenum* type) { switch (pixel_format) { - case SDL_PIXELFORMAT_RGB888: case SDL_PIXELFORMAT_ARGB8888: *internalFormat = GL_RGBA8; *format = GL_BGRA; diff -r 1f2b17f42fd0 -r 25ffd4e5255c src/render/opengles/SDL_render_gles.c --- a/src/render/opengles/SDL_render_gles.c Sun Feb 06 00:48:16 2011 -0800 +++ b/src/render/opengles/SDL_render_gles.c Sun Feb 06 00:48:41 2011 -0800 @@ -74,8 +74,8 @@ SDL_RenderDriver GLES_RenderDriver = { GLES_CreateRenderer, { - "opengl_es", - (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED), + "opengles", + (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC), 1, {SDL_PIXELFORMAT_ABGR8888}, 0, @@ -331,8 +331,7 @@ type = GL_UNSIGNED_BYTE; break; default: - SDL_SetError("Texture format %s not supported by OpenGL ES", - SDL_GetPixelFormatName(texture->format)); + SDL_SetError("Texture format not supported"); return -1; }