comparison src/video/SDL_renderer_gl.c @ 4455:6cf71111cf68

Removed unused variables
author Sam Lantinga <slouken@libsdl.org>
date Sun, 09 May 2010 15:24:05 -0700
parents d8308bc267bc
children 9779093454d2
comparison
equal deleted inserted replaced
4454:be387681d876 4455:6cf71111cf68
750 750
751 static int 751 static int
752 GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) 752 GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
753 { 753 {
754 GL_RenderData *renderdata = (GL_RenderData *) renderer->driverdata; 754 GL_RenderData *renderdata = (GL_RenderData *) renderer->driverdata;
755 SDL_Window *window = renderer->window;
756 GL_TextureData *data; 755 GL_TextureData *data;
757 GLint internalFormat; 756 GLint internalFormat;
758 GLenum format, type; 757 GLenum format, type;
759 int texture_w, texture_h; 758 int texture_w, texture_h;
760 GLuint shader = 0; 759 GLuint shader = 0;
936 935
937 static int 936 static int
938 GL_GetTexturePalette(SDL_Renderer * renderer, SDL_Texture * texture, 937 GL_GetTexturePalette(SDL_Renderer * renderer, SDL_Texture * texture,
939 SDL_Color * colors, int firstcolor, int ncolors) 938 SDL_Color * colors, int firstcolor, int ncolors)
940 { 939 {
941 GL_RenderData *renderdata = (GL_RenderData *) renderer->driverdata;
942 GL_TextureData *data = (GL_TextureData *) texture->driverdata; 940 GL_TextureData *data = (GL_TextureData *) texture->driverdata;
943 Uint8 *palette; 941 Uint8 *palette;
944 942
945 if (!data->palette) { 943 if (!data->palette) {
946 SDL_SetError("Texture doesn't have a palette"); 944 SDL_SetError("Texture doesn't have a palette");