src/video/SDL_renderer_gl.c
changeset 3455 5a7b5760c875
parent 3454 77366fae0094
child 3457 06e948183b59
equal deleted inserted replaced
3454:77366fae0094 3455:5a7b5760c875
  1126     data->glBegin(GL_LINES);
  1126     data->glBegin(GL_LINES);
  1127     data->glVertex2f(0.5f + x1, 0.5f + y1);
  1127     data->glVertex2f(0.5f + x1, 0.5f + y1);
  1128     data->glVertex2f(0.5f + x2, 0.5f + y2);
  1128     data->glVertex2f(0.5f + x2, 0.5f + y2);
  1129     data->glEnd();
  1129     data->glEnd();
  1130 
  1130 
       
  1131     /* For some reason the second endpoint is skipped */
       
  1132     data->glBegin(GL_POINTS);
       
  1133     data->glVertex2f(0.5f + x2, 0.5f + y2);
       
  1134     data->glEnd();
       
  1135 
  1131     return 0;
  1136     return 0;
  1132 }
  1137 }
  1133 
  1138 
  1134 static int
  1139 static int
  1135 GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)
  1140 GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)