swrast: remove dstType param from _swrast_read_rgba_span()

It was always GL_FLOAT.
This commit is contained in:
Brian Paul
2012-01-16 10:54:13 -07:00
parent 64be85540f
commit 267fb17884
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ copy_rgba_pixels(struct gl_context *ctx, GLint srcx, GLint srcy,
p = tmpImage;
for (row = 0; row < height; row++) {
_swrast_read_rgba_span( ctx, ctx->ReadBuffer->_ColorReadBuffer,
width, srcx, sy + row, GL_FLOAT, p );
width, srcx, sy + row, p );
p += width * 4;
}
p = tmpImage;
@@ -172,7 +172,7 @@ copy_rgba_pixels(struct gl_context *ctx, GLint srcx, GLint srcy,
else {
/* get from framebuffer */
_swrast_read_rgba_span( ctx, ctx->ReadBuffer->_ColorReadBuffer,
width, srcx, sy, GL_FLOAT, rgba );
width, srcx, sy, rgba );
}
if (transferOps) {
+4 -4
View File
@@ -1324,16 +1324,16 @@ end:
/**
* Read RGBA pixels from a renderbuffer. Clipping will be done to prevent
* reading ouside the buffer's boundaries.
* \param dstType datatype for returned colors
* Read float RGBA pixels from a renderbuffer. Clipping will be done to
* prevent reading ouside the buffer's boundaries.
* \param rgba the returned colors
*/
void
_swrast_read_rgba_span( struct gl_context *ctx, struct gl_renderbuffer *rb,
GLuint n, GLint x, GLint y, GLenum dstType,
GLuint n, GLint x, GLint y,
GLvoid *rgba)
{
GLenum dstType = GL_FLOAT;
const GLint bufWidth = (GLint) rb->Width;
const GLint bufHeight = (GLint) rb->Height;
+1 -1
View File
@@ -201,7 +201,7 @@ _swrast_write_rgba_span( struct gl_context *ctx, SWspan *span);
extern void
_swrast_read_rgba_span(struct gl_context *ctx, struct gl_renderbuffer *rb,
GLuint n, GLint x, GLint y, GLenum type, GLvoid *rgba);
GLuint n, GLint x, GLint y, GLvoid *rgba);
extern void
_swrast_get_values(struct gl_context *ctx, struct gl_renderbuffer *rb,