Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed the coordinates for pixel coverage in blits
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 21, 2009
1 parent 10f1cfc commit 3513bf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -1292,13 +1292,13 @@ GL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,

data->glBegin(GL_TRIANGLE_STRIP);
data->glTexCoord2f(minu, minv);
data->glVertex2f(0.5f + minx, 0.5f + miny);
data->glVertex2f((GLfloat) minx, (GLfloat) miny);
data->glTexCoord2f(maxu, minv);
data->glVertex2f(0.5f + maxx, 0.5f + miny);
data->glVertex2f((GLfloat) maxx, (GLfloat) miny);
data->glTexCoord2f(minu, maxv);
data->glVertex2f(0.5f + minx, 0.5f + maxy);
data->glVertex2f((GLfloat) minx, (GLfloat) maxy);
data->glTexCoord2f(maxu, maxv);
data->glVertex2f(0.5f + maxx, 0.5f + maxy);
data->glVertex2f((GLfloat) maxx, (GLfloat) maxy);
data->glEnd();

if (shader) {
Expand Down

0 comments on commit 3513bf5

Please sign in to comment.