Mercurial > sdl-ios-xcode
comparison src/video/SDL_renderer_gl.c @ 3472:fdd2f2e9cd97
Fixed the coordinates for pixel coverage in blits
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 21 Nov 2009 06:34:43 +0000 |
parents | 419f459f2f38 |
children | 7bdc10624cba |
comparison
equal
deleted
inserted
replaced
3471:da53c4046c65 | 3472:fdd2f2e9cd97 |
---|---|
1290 data->glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, shader); | 1290 data->glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, shader); |
1291 } | 1291 } |
1292 | 1292 |
1293 data->glBegin(GL_TRIANGLE_STRIP); | 1293 data->glBegin(GL_TRIANGLE_STRIP); |
1294 data->glTexCoord2f(minu, minv); | 1294 data->glTexCoord2f(minu, minv); |
1295 data->glVertex2f(0.5f + minx, 0.5f + miny); | 1295 data->glVertex2f((GLfloat) minx, (GLfloat) miny); |
1296 data->glTexCoord2f(maxu, minv); | 1296 data->glTexCoord2f(maxu, minv); |
1297 data->glVertex2f(0.5f + maxx, 0.5f + miny); | 1297 data->glVertex2f((GLfloat) maxx, (GLfloat) miny); |
1298 data->glTexCoord2f(minu, maxv); | 1298 data->glTexCoord2f(minu, maxv); |
1299 data->glVertex2f(0.5f + minx, 0.5f + maxy); | 1299 data->glVertex2f((GLfloat) minx, (GLfloat) maxy); |
1300 data->glTexCoord2f(maxu, maxv); | 1300 data->glTexCoord2f(maxu, maxv); |
1301 data->glVertex2f(0.5f + maxx, 0.5f + maxy); | 1301 data->glVertex2f((GLfloat) maxx, (GLfloat) maxy); |
1302 data->glEnd(); | 1302 data->glEnd(); |
1303 | 1303 |
1304 if (shader) { | 1304 if (shader) { |
1305 data->glDisable(GL_FRAGMENT_PROGRAM_ARB); | 1305 data->glDisable(GL_FRAGMENT_PROGRAM_ARB); |
1306 } | 1306 } |