Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Minor consistency cleanup and documentation link update.
- Loading branch information
|
@@ -116,7 +116,7 @@ SDL_RenderDriver D3D_RenderDriver = { |
|
|
D3D_CreateRenderer, |
|
|
{ |
|
|
"direct3d", |
|
|
(SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED), |
|
|
(SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC), |
|
|
1, |
|
|
{SDL_PIXELFORMAT_ARGB8888}, |
|
|
0, |
|
|
|
@@ -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 @@ SDL_RenderDriver GL_RenderDriver = { |
|
|
GL_CreateRenderer, |
|
|
{ |
|
|
"opengl", |
|
|
(SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED), |
|
|
(SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC), |
|
|
1, |
|
|
{SDL_PIXELFORMAT_ARGB8888}, |
|
|
0, |
|
@@ -331,7 +331,6 @@ convert_format(GL_RenderData *renderdata, Uint32 pixel_format, |
|
|
GLint* internalFormat, GLenum* format, GLenum* type) |
|
|
{ |
|
|
switch (pixel_format) { |
|
|
case SDL_PIXELFORMAT_RGB888: |
|
|
case SDL_PIXELFORMAT_ARGB8888: |
|
|
*internalFormat = GL_RGBA8; |
|
|
*format = GL_BGRA; |
|
|
|
@@ -74,8 +74,8 @@ static void GLES_DestroyRenderer(SDL_Renderer * renderer); |
|
|
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 @@ GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) |
|
|
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; |
|
|
} |
|
|
|
|
|