src/video/SDL_renderer_gl.c
changeset 2937 017d4334accf
parent 2936 066384910f50
child 3011 8f4ed5ec2b06
equal deleted inserted replaced
2936:066384910f50 2937:017d4334accf
  1107 
  1107 
  1108 static int
  1108 static int
  1109 GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)
  1109 GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)
  1110 {
  1110 {
  1111     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
  1111     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
  1112     SDL_Window *window = SDL_GetWindowFromID(renderer->window);
       
  1113 
  1112 
  1114     GL_SetBlendMode(data, renderer->blendMode);
  1113     GL_SetBlendMode(data, renderer->blendMode);
  1115 
  1114 
  1116     data->glColor4f((GLfloat) renderer->r * inv255f,
  1115     data->glColor4f((GLfloat) renderer->r * inv255f,
  1117                     (GLfloat) renderer->g * inv255f,
  1116                     (GLfloat) renderer->g * inv255f,